Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 99f1a04

Browse files
committed
readme: add example usage
1 parent 0f6d59e commit 99f1a04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Python library to parse and format email threads. Give it a list of emails that
66
are part of the same thread and it'll build a tree of responses to the original
77
message.
88

9+
```python
10+
import emailthreads
11+
import mailbox
12+
13+
mbox = mailbox.mbox("/path/to/mbox/thread")
14+
thread = emailthreads.parse(mbox)
15+
print(thread)
16+
```
17+
918
## Tests
1019

1120
To run the tests, execute this command:

0 commit comments

Comments
 (0)