[message]) |
Typically, a mail user agent application moves all of the messages in the new subdirectory to the cur subdirectory after the first time the user opens and closes the mailbox, recording that the messages are old whether or not they've actually been read. Each message in cur has an "info" section added to its file name to store information about its state. (Some mail readers may also add an "info" section to messages in new.) The "info" section may take one of two forms: it may contain "2," followed by a list of standardized flags (e.g., "2,FR") or it may contain "1," followed by so-called experimental information. Standard flags for Maildir messages are as follows:
Flag | Meaning | Explanation |
---|---|---|
D | Draft | Under composition |
F | Flagged | Marked as important |
P | Passed | Forwarded, resent, or bounced |
R | Replied | Replied to |
S | Seen | Read |
T | Trashed | Marked for subsequent deletion |
MaildirMessage instances offer the following methods:
) |
msg
has been read if "S" in msg.get_flags()
is True
.
subdir) |
) |
flags) |
flag) |
flag) |
) |
date) |
) |
info) |
When a MaildirMessage instance is created based upon an mboxMessage or MMDFMessage instance, the Status: and X-Status: headers are omitted and the following conversions take place:
Resulting state | mboxMessage or MMDFMessage state |
---|---|
"cur" subdirectory | O flag |
F flag | F flag |
R flag | A flag |
S flag | R flag |
T flag | D flag |
When a MaildirMessage instance is created based upon an MHMessage instance, the following conversions take place:
Resulting state | MHMessage state |
---|---|
"cur" subdirectory | "unseen" sequence |
"cur" subdirectory and S flag | no "unseen" sequence |
F flag | "flagged" sequence |
R flag | "replied" sequence |
When a MaildirMessage instance is created based upon a BabylMessage instance, the following conversions take place:
Resulting state | BabylMessage state |
---|---|
"cur" subdirectory | "unseen" label |
"cur" subdirectory and S flag | no "unseen" label |
P flag | "forwarded" or "resent" label |
R flag | "answered" label |
T flag | "deleted" label |
See About this document... for information on suggesting changes.