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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use
formail.formailis 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:
Note:
formailis also included in procmail – https://github.com/BuGlessRB/procmail .