[jay.scot]
[010]


--[ Convert mbox to maildir using fdm


I recently downloaded a bunch of old mailing list archives from Alpine
Linux[0] that I want to merge with my current archives. The problem being
my current archives were in Maildir format while the Alpine Linux
archives were in MBOX.


Since I already use fdm[1] for fetching my mail as well as converting RSS
feeds I just went with that, this is how:


       $ cat archive

       $listdir= "%h/.mail/alpine.users" # where to save the maildir
       $mbox= "%h/tmp/alpine-users.mbox" # the local mbox location

       # the local mbox file
       account "convert" mbox "$mbox"
       action "convert" maildir "${listdir}"
       match all action "convert"


then just run FDM with the above configuration file:


       $ fdm -f archive fetch


0. https://lists.alpinelinux.org/~alpine/users
1. https://github.com/nicm/fdm

EOF