-
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.
Attachment content_id content_disposition _part->part,
email.utils.parsedate_to_datetime used in utils.parse_email_addresses, BaseMailBox.fetch limit argument now can receive slice object, mailbox.last_search_ids
- Loading branch information
Showing
11 changed files
with
265 additions
and
39 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 |
---|---|---|
|
@@ -48,11 +48,11 @@ Basic | |
MailBox, MailBoxUnencrypted - for create mailbox instance. | ||
|
||
MailBox.box - imaplib.IMAP4/IMAP4_SSL client instance. | ||
BaseMailBox.box - imaplib.IMAP4/IMAP4_SSL client instance. | ||
|
||
MailBox.login, MailBox.xoauth2 - authentication functions | ||
BaseMailBox.login, MailBox.xoauth2 - authentication functions | ||
|
||
MailBox.fetch - email message generator, first searches email ids by criteria, then fetch and yields emails by one: | ||
BaseMailBox.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>`_ | ||
* *charset* = 'US-ASCII', indicates charset of the strings that appear in the search criteria. See rfc2978 | ||
|
@@ -63,6 +63,8 @@ MailBox.fetch - email message generator, first searches email ids by criteria, t | |
* *reverse* = False, in order from the larger date to the smaller | ||
* *headers_only* = False, get only email headers (without text, html, attachments) | ||
|
||
BaseMailBox instance has attribute mailbox.last_search_ids, it fills after each fetch - msg ids from search command | ||
|
||
Email attributes | ||
^^^^^^^^^^^^^^^^ | ||
|
||
|
@@ -86,9 +88,12 @@ Message and Attachment public attributes are cached by functools.lru_cache | |
msg.headers # dict: {'Received': ('from 1.m.ru', 'from 2.m.ru'), 'AntiVirus': ('Clean',)} | ||
for att in msg.attachments: # list: [Attachment] | ||
att.filename # str: 'cat.jpg' | ||
att.content_type # str: 'image/jpeg' | ||
att.payload # bytes: b'\xff\xd8\xff\xe0\' | ||
att.filename # str: 'cat.jpg' | ||
att.payload # bytes: b'\xff\xd8\xff\xe0\' | ||
att.content_id # str: '[email protected]' | ||
att.content_type # str: 'image/jpeg' | ||
att.content_disposition # str: 'inline' | ||
att.part # email.message.Message: original object | ||
msg.obj # email.message.Message: original object | ||
msg.from_values # dict or None: {'email': '[email protected]', 'name': 'Ya 你', 'full': 'Ya 你 <[email protected]>'} | ||
|
@@ -291,6 +296,8 @@ Big thanks to people who helped develop this library: | |
`amarkham09 <https://github.com/amarkham09>`_, | ||
`nixCodeX <https://github.com/nixCodeX>`_, | ||
`backelj <https://github.com/backelj>`_, | ||
`ohayak <https://github.com/ohayak>`_ | ||
`ohayak <https://github.com/ohayak>`_, | ||
`mwherman95926 <https://github.com/mwherman95926>`_, | ||
`andyfensham <https://github.com/andyfensham>`_ | ||
|
||
💰 You may `thank me <https://github.com/ikvk/imap_tools/blob/master/docs/donate.rst>`_, if this library helped you. |
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
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,2 +0,0 @@ | ||
|
||
check https://docs.python.org/release/3.8.1/library/email.utils.html | ||
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,7 +1,7 @@ | ||
from .query import Q, AND, OR, NOT, Header, A, O, N, H | ||
from .mailbox import * | ||
from .message import * | ||
from .folder import * | ||
from .mailbox import BaseMailBox, MailBox, MailBoxUnencrypted | ||
from .message import MailMessage, Attachment, MailMessageFlags | ||
from .folder import MailBoxFolderManager, MailBoxFolderStatusOptions | ||
from .errors import * | ||
|
||
__version__ = '0.21.0' | ||
__version__ = '0.22.0' |
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
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
Oops, something went wrong.