[message]) |
As with message in an mbox mailbox, MMDF messages are stored with the sender's address and the delivery date in an initial line beginning with "From ". Likewise, flags that indicate the state of the message are typically stored in Status: and X-Status: headers.
Conventional flags for MMDF messages are identical to those of mbox message and are as follows:
Flag | Meaning | Explanation |
---|---|---|
R | Read | Read |
O | Old | Previously detected by MUA |
D | Deleted | Marked for subsequent deletion |
F | Flagged | Marked as important |
A | Answered | Replied to |
The "R" and "O" flags are stored in the Status: header, and the "D", "F", and "A" flags are stored in the X-Status: header. The flags and headers typically appear in the order mentioned.
MMDFMessage instances offer the following methods, which are identical to those offered by mboxMessage:
) |
from_[, time_=None]) |
True
(to use
time.gmtime()).
) |
flags) |
flag) |
flag) |
When an MMDFMessage instance is created based upon a MaildirMessage instance, a "From " line is generated based upon the MaildirMessage instance's delivery date, and the following conversions take place:
Resulting state | MaildirMessage state |
---|---|
R flag | S flag |
O flag | "cur" subdirectory |
D flag | T flag |
F flag | F flag |
A flag | R flag |
When an MMDFMessage instance is created based upon an MHMessage instance, the following conversions take place:
Resulting state | MHMessage state |
---|---|
R flag and O flag | no "unseen" sequence |
O flag | "unseen" sequence |
F flag | "flagged" sequence |
A flag | "replied" sequence |
When an MMDFMessage instance is created based upon a BabylMessage instance, the following conversions take place:
Resulting state | BabylMessage state |
---|---|
R flag and O flag | no "unseen" label |
O flag | "unseen" label |
D flag | "deleted" label |
A flag | "answered" label |
When an MMDFMessage instance is created based upon an mboxMessage instance, the "From " line is copied and all flags directly correspond:
Resulting state | mboxMessage state |
---|---|
R flag | R flag |
O flag | O flag |
D flag | D flag |
F flag | F flag |
A flag | A flag |
See About this document... for information on suggesting changes.