| 010.txt - gopherhole - My gopherhole source code. | |
| git clone git://jay.scot/gopherhole | |
| Log | |
| Files | |
| Refs | |
| --- | |
| 010.txt (843B) | |
| --- | |
| 1 [jay.scot] | |
| 2 [010] | |
| 3 | |
| 4 | |
| 5 --[ Convert mbox to maildir using fdm | |
| 6 | |
| 7 | |
| 8 I recently downloaded a bunch of old mailing list archives from Alpine | |
| 9 Linux[0] that I want to merge with my current archives. The problem being | |
| 10 my current archives were in Maildir format while the Alpine Linux | |
| 11 archives were in MBOX. | |
| 12 | |
| 13 | |
| 14 Since I already use fdm[1] for fetching my mail as well as converting RSS | |
| 15 feeds I just went with that, this is how: | |
| 16 | |
| 17 | |
| 18 $ cat archive | |
| 19 | |
| 20 $listdir= "%h/.mail/alpine.users" # where to save the maildir | |
| 21 $mbox= "%h/tmp/alpine-users.mbox" # the local mbox location | |
| 22 | |
| 23 # the local mbox file | |
| 24 account "convert" mbox "$mbox" | |
| 25 action "convert" maildir "${listdir}" | |
| 26 match all action "convert" | |
| 27 | |
| 28 | |
| 29 then just run FDM with the above configuration file: | |
| 30 | |
| 31 | |
| 32 $ fdm -f archive fetch | |
| 33 | |
| 34 | |
| 35 0. https://lists.alpinelinux.org/~alpine/users | |
| 36 1. https://github.com/nicm/fdm | |
| 37 | |
| 38 .EOF |