On 01 Apr 2012, at 22:35 , Arno Hautala wrote:
> Can anyone relay what the Mail.app uses for a directory structure when
> including Gmail's "All Mail" folder?

Mail.app uses a modified MH Mailbox Format structure for storing mail. This is 
similar to the idea of Maildir, but has some notable differences.

<http://wiki.dovecot.org/MailboxFormat/MH>

While Maildir writes messages out with the timestamp as part of the name, MH 
uses sequential names.

So, for example, I have on my system the following structure:

~
 Library
  Mail
   V2
    [email protected]
     INBOX.mbox
      Sent Messages.mbox
       A827C3EE-533E-4F49-8ED8-0B8FD9468989
        Data
         2
          5
           2
            1
             Messages
              1252436.emlx
              1252948.emlx
              1252949.emlx
              1252950.emlx
              1252951.emlx
              1252952.emlx
              1252953.emlx
              1252954.emlx
              1252955.emlx
              1252956.emlx
              1252957.emlx
              1252958.emlx
              1252959.emlx
              1252960.emlx
              1252961.emlx
              1252962.2.emlxpart
              1252962.partial.emlx

The long hex number is, I expect, "security through obfuscation" and I have no 
idea what the significance of the .../2/5/2/1 structure is. The next message 
would be named 1252963.emlx, assuming it was stored int he same folder.

A Maildir on the IMAP server (/home/kreme/Maildir/.Sent Messages/cur) is much 
flatter, but the Sent Message folder contains a lot more emails (1100) with 
filenames more like this:

1331403321.M442015P36335V00000050I0066107D_1.,S=3447:2,S
1331403336.M882196P36335V00000050I00661073_2.,S=5606:2,S
1331585957.M820409P41175V00000050I00661080_0.,S=987:2,S
1331660526.M266034P41181V00000050I00661082_2.,S=1116:2,S
1332179779.M399398P6618V00000050I00661086_0.,S=923:2,S
1332180553.M222453P7474V00000050I0066108A_0.,S=836:2,S


-- 
'A man like that could inspire a handful of broken men to conquer a
country.' 'Fine. Just so long as he does it on his day off.'

_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to