-
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.
- Loading branch information
Showing
10 changed files
with
108 additions
and
64 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
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,7 +1,8 @@ | ||
from .query import AND, OR, NOT, Header, UidRange, A, O, N, H, U | ||
from .mailbox import BaseMailBox, MailBox, MailBoxUnencrypted | ||
from .message import MailMessage, MailAttachment, MailMessageFlags | ||
from .folder import MailBoxFolderManager, MailBoxFolderStatusOptions | ||
from .message import MailMessage, MailAttachment | ||
from .folder import MailBoxFolderManager | ||
from .consts import MailMessageFlags, MailBoxFolderStatusOptions | ||
from .errors import * | ||
|
||
__version__ = '0.41.0' | ||
__version__ = '0.42.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
"""Lib constants""" | ||
|
||
SHORT_MONTH_NAMES = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') | ||
|
||
|
||
class MailMessageFlags: | ||
""" | ||
System email message flags | ||
All system flags begin with "\" | ||
""" | ||
SEEN = '\\Seen' | ||
ANSWERED = '\\Answered' | ||
FLAGGED = '\\Flagged' | ||
DELETED = '\\Deleted' | ||
DRAFT = '\\Draft' | ||
RECENT = '\\Recent' | ||
all = ( | ||
SEEN, ANSWERED, FLAGGED, DELETED, DRAFT, RECENT | ||
) | ||
|
||
|
||
class MailBoxFolderStatusOptions: | ||
"""Valid mailbox folder status options""" | ||
MESSAGES = 'MESSAGES' | ||
RECENT = 'RECENT' | ||
UIDNEXT = 'UIDNEXT' | ||
UIDVALIDITY = 'UIDVALIDITY' | ||
UNSEEN = 'UNSEEN' | ||
all = ( | ||
MESSAGES, RECENT, UIDNEXT, UIDVALIDITY, UNSEEN | ||
) | ||
description = ( | ||
(MESSAGES, "The number of messages in the mailbox"), | ||
(RECENT, "The number of messages with the Recent flag set"), | ||
(UIDNEXT, "The next unique identifier value of the mailbox"), | ||
(UIDVALIDITY, "The unique identifier validity value of the mailbox"), | ||
(UNSEEN, "The number of messages which do not have the Seen flag set"), | ||
) |
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
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