npub1gk…utj70 on Nostr: I recently needed a script to convert mbox files to maildir, and to my surprise this ...
I recently needed a script to convert mbox files to maildir, and to my surprise this was a nontrivial problem. I only found one written in perl that didn't work with my mbox files. As I don't speak perl, rather than trying to fix it I wrote one in python. It's very simple, as python's standard library already brings all the functionality, in case anyone needs it:
https://github.com/hannob/mbox2maildirPublished at
2024-04-05 16:04:48Event JSON
{
"id": "eaefe82ac051fe847660d00d1d08da6a270032f85540bc6cf39395bcbc0f9d57",
"pubkey": "45be03643b1b47c02f8c4bf8932009f10ffaead3770fb1a9a559f2155450723b",
"created_at": 1712333088,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/hanno/statuses/112219461278196066",
"activitypub"
]
],
"content": "I recently needed a script to convert mbox files to maildir, and to my surprise this was a nontrivial problem. I only found one written in perl that didn't work with my mbox files. As I don't speak perl, rather than trying to fix it I wrote one in python. It's very simple, as python's standard library already brings all the functionality, in case anyone needs it: https://github.com/hannob/mbox2maildir",
"sig": "2cd801b00988ddc7ea4aba720f7f9f3c0fe8619e14a051746865ef158ea24e0b0d08a0882f7068bbd6b31fc1a44deea34ffca8a64af183f9d21c3f8ebc3cb50d"
}