| Adding FDM txt file - gopherhole - My website source code. | |
| Log | |
| Files | |
| Refs | |
| --- | |
| commit 94c1b00a00ae9dfabba5ecb4394afe76db274be2 | |
| parent 1eb1579e8a2a9c4bb9f853424bce9d5fcf691618 | |
| Author: Jay Scott <[email protected]> | |
| Date: Wed, 28 Sep 2022 16:13:47 +0100 | |
| Adding FDM txt file | |
| Diffstat: | |
| M index.gmi | 3 ++- | |
| A txt/010.txt | 39 +++++++++++++++++++++++++++++… | |
| 2 files changed, 41 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/index.gmi b/index.gmi | |
| @@ -7,6 +7,7 @@ J A Y . S C O T | |
| ├── INDEX | |
| +=> /txt/010.txt 2022-09-28 ... Convert MBOX to Maildir using FDM | |
| => /txt/009.txt 2022-09-13 ... A true cheap dumbphone, impossible? | |
| => /txt/008.txt 2022-08-01 ... I moved over to wayland | |
| => /txt/007.txt 2022-05-01 ... Build, patch and maintain suckless tools | |
| @@ -20,7 +21,7 @@ J A Y . S C O T | |
| ├── OFFLINE | |
| -> for i in {001..009}; do gemget jay.scot/txt/$i.txt ; done | |
| +> for i in {001..010}; do gemget jay.scot/txt/$i.txt ; done | |
| ├── INFO | |
| diff --git a/txt/010.txt b/txt/010.txt | |
| @@ -0,0 +1,39 @@ | |
| +[jay.scot] | |
| +[010] | |
| + | |
| + | |
| + ── Convert MBOX to Maildir using FDM ── | |
| + | |
| + | |
| +I recently downloaded a bunch of old mailing list archives from Alpine | |
| +Linux 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 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 | |
| + | |
| + | |
| +── SOURCES | |
| + | |
| +>> https://github.com/nicm/fdm | |
| +>> https://lists.alpinelinux.org/~alpine/users | |
| + | |
| + | |
| +.EOF |