Updated docs, Mailbox class and example@
This commit is contained in:
20
README.md
20
README.md
@@ -1,4 +1,22 @@
|
||||
mailbox
|
||||
Mailbox
|
||||
=======
|
||||
|
||||
Small Python library for reading IMAP email boxes and parsing the content to JSON
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
|
||||
from mailbox import MailBox
|
||||
|
||||
mailbox = MailBox('imap.gmail.com',
|
||||
username='username',
|
||||
password='password',
|
||||
ssl=True)
|
||||
|
||||
unread = mailbox.get_unread()
|
||||
|
||||
for message in unread:
|
||||
print message.json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user