From 60fe5a8b671e8c8d3399189cc0574525a1210fad Mon Sep 17 00:00:00 2001 From: "v.kaukin" Date: Mon, 13 Apr 2020 09:57:01 +0500 Subject: [PATCH] update readme --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 15b3a5e..2684c06 100644 --- a/README.rst +++ b/README.rst @@ -39,9 +39,9 @@ Basic with MailBox('imap.mail.com').login('test@mail.com', '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('test@mail.com', 'password', initial_folder='INBOX') + mailbox.login('test@mail.com', 'password', initial_folder='INBOX') # or mailbox.folder.set instead 3d arg subjects = [msg.subject for msg in mailbox.fetch(Q(all=True))] mailbox.logout() @@ -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': 'im@ya.ru', 'name': 'Van', 'full': 'Van '} + message.from_values # dict or None: {'email': 'im@ya.ru', 'name': 'Van 你', 'full': 'Van 你 '} message.to_values # tuple: ({'email': '', 'name': '', 'full': ''},) message.cc_values # tuple: ({'email': '', 'name': '', 'full': ''},) message.bcc_values # tuple: ({'email': '', 'name': '', 'full': ''},)