pst-format / libpst

library for reading Microsoft Outlook PST files
GNU General Public License v2.0
16 stars 4 forks source link

Feature request: readpst should generate file names corresponding to the Unix time the mail was received #10

Open fhanzlik opened 1 year ago

fhanzlik commented 1 year ago

It's probably not a very important feature and maybe I'm blind and don't see how it can be done any other way (maybe some IMAP server (dovecot?) can do this?), but wouldn't it be nice if readpst was able to generate mail names in Maildir++ format, with message file name corresponding to mail time? ( https://en.wikipedia.org/wiki/Maildir )

pabs3 commented 1 year ago

Definitely a good idea to add Maildir++ output in addition to the existing mbox, MH and custom formats it currently has.

For now I think you can just use the MH output and then convert that to Maildir++ using these commands:

mkdir -p maildir-folder/{cur,new,tmp}
cp -a mh-folder/* maildir-folder/cur

If course you will need to repeat that for each subfolder and will need to name the subfolders properly (prefix with . and name them after the full subfolder tree with . in place of / characters).

Probably there is another better way to convert from MH to Maildir++ but I don't know a lot about the MH format.

Please submit a merge request if you add this feature. If you aren't able to work on it, then I will work on it when I find some time.

-- bye, pabs

https://bonedaddy.net/pabs3/