-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BaseMailBox.fetch headers_only arg fixed
- Loading branch information
Showing
5 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,10 +45,12 @@ Basic | |
subjects = [msg.subject for msg in mailbox.fetch(AND(all=True))] | ||
mailbox.logout() | ||
MailBox/MailBoxUnencrypted - for create mailbox instance. | ||
MailBox, MailBoxUnencrypted - for create mailbox instance. | ||
|
||
MailBox.box - imaplib.IMAP4/IMAP4_SSL client instance. | ||
|
||
MailBox.login - authentication function | ||
|
||
MailBox.fetch - email message generator, first searches email ids by criteria, then fetch and yields emails by one: | ||
|
||
* *criteria* = 'ALL', message search criteria, `docs <#search-criteria>`_ | ||
|
@@ -58,7 +60,7 @@ MailBox.fetch - email message generator, first searches email ids by criteria, t | |
* *miss_no_uid* = True, miss emails without uid | ||
* *mark_seen* = True, mark emails as seen on fetch | ||
* *reverse* = False, in order from the larger date to the smaller | ||
* *headers_only* = False, get only email headers (without text, html, attachments) !disabled until fix bug | ||
* *headers_only* = False, get only email headers (without text, html, attachments) | ||
|
||
Email attributes | ||
^^^^^^^^^^^^^^^^ | ||
|
@@ -137,7 +139,7 @@ Header H for search by headers name: str, value: str | |
# complex | ||
A(OR(from_='[email protected]', text='"the text"'), NOT(OR(A(answered=False), A(new=True))), to='[email protected]') | ||
# encoding | ||
mailbox.fetch(A(subject='привет'), charset='utf8') # 'привет' will be encoded by MailBox._criteria_encoder | ||
mailbox.fetch(A(subject='привет'), charset='utf8') | ||
# python note: you can't do: A(text='two', NOT(subject='one')) | ||
A(NOT(subject='one'), text='two') # use kwargs after logic classes (args) | ||
|
@@ -248,7 +250,7 @@ Custom lib exceptions here: `errors.py <https://github.com/ikvk/imap_tools/blob/ | |
Release notes | ||
------------- | ||
|
||
History of important changes: `release_notes.rst <https://github.com/ikvk/imap_tools/blob/master/release_notes.rst>`_ | ||
History of important changes: `release_notes.rst <https://github.com/ikvk/imap_tools/blob/master/docs/release_notes.rst>`_ | ||
|
||
Contribute | ||
---------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
check https://docs.python.org/release/3.8.1/library/email.utils.html | ||
|
||
fix BaseMailBox.fetch headers_only | ||
|
||
__getitem__ -> https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.get_all | ||
__getitem__ -> https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.get_all ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters