In /home/myusername/mail/mysite.com/info/cur, there's a list of all my raw emails, which looks something like this ...


I'm guessing the number after S\= is the Message ID, followed by status codes.
My first guess is that D = Draft, R = Read, S = Sent, F = Flagged, T = Deleted or something. But what does the "2" mean?

Where is there a reference/guide for translating these status codes?

1 Answer 1


This looks like a mailbox in "maildir" format.

"maildir" is a format that stores each email in a separate file (unlike for example the "mbox" format). Parts of the file name indicate the status of the mail.

The part before the colon (":") is just a unique name for the mail file (to avoid conflicts if multiple programs write to the same mailbox concurrently). The part after the colon is the mail status. The "2," just means that what follows is a list of status flags. The flags are (according to the spec):

  • P (passed): the user has resent/forwarded/bounced this message to someone else.
  • R (replied): the user has replied to this message.
  • S (seen): the user has viewed this message, though perhaps he didn't read all the way through it.
  • T (trashed): the user has moved this message to the trash; the trash will be emptied by a later user action.
  • D (draft): the user considers this message a draft; toggled at user discretion.
  • F (flagged): user-defined flag; toggled at user discretion.

For more information:

  • 1
    So "2" is the version of the info following the comma, which are the first letters of: "Passed, Replied, Seen, Trashed, Draft, Flagged". Awesome :) Thank you!
    – neokio
    Sep 10, 2013 at 10:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .