Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ikvk committed Apr 13, 2020
1 parent 315556e commit 60fe5a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Basic
with MailBox('imap.mail.com').login('[email protected]', 'password') as mailbox:
subjects = [msg.subject for msg in mailbox.fetch()]
# get list of email subjects from INBOX folder - verbose version
# get list of email subjects from INBOX folder - equivalent verbose version
mailbox = MailBox('imap.mail.com')
mailbox.login('[email protected]', 'password', initial_folder='INBOX')
mailbox.login('[email protected]', 'password', initial_folder='INBOX') # or mailbox.folder.set instead 3d arg
subjects = [msg.subject for msg in mailbox.fetch(Q(all=True))]
mailbox.logout()
Expand Down Expand Up @@ -85,7 +85,7 @@ Message and Attachment public attributes are cached by functools.lru_cache
att.payload # bytes: b'\xff\xd8\xff\xe0\'
message.obj # email.message.Message: original object
message.from_values # dict or None: {'email': '[email protected]', 'name': 'Van', 'full': 'Van <[email protected]>'}
message.from_values # dict or None: {'email': '[email protected]', 'name': 'Van', 'full': 'Van <[email protected]>'}
message.to_values # tuple: ({'email': '', 'name': '', 'full': ''},)
message.cc_values # tuple: ({'email': '', 'name': '', 'full': ''},)
message.bcc_values # tuple: ({'email': '', 'name': '', 'full': ''},)
Expand Down

0 comments on commit 60fe5a8

Please sign in to comment.