I'd like to split my inbox into separate files (one file per one message) by bash command, or may be simple program in Java. How can I do it?
WBR, Thanx.
I'd like to split my inbox into separate files (one file per one message) by bash command, or may be simple program in Java. How can I do it?
WBR, Thanx.
Git (
git mailsplit
) can do this as well. For example,If you don't have formail, you can also use this Perl oneliner (copied from here, and just tested on a Thunderbird Inbox I needed to split)
or, to have 0-padded numbers:
Just use
formail
.formail
is a program that can process mailbox, run some actions for each message in the mailbox, separate messages and so on.More info: http://www.manpagez.com/man/1/formail/
If you want just split a mailbox to separate files, I would suggest such solution:
From man: