I got a mailbox-file ("Mboxrd") created by
getmail, and I'd like to "process" it by sorting mail from various (groups of) senders, and move them to separate mailbox-files (I guess 3-5 for now). Ideally, the mail messages thus moved, should be deleted from the original mailbox-file.
I most likely would want to classify mail by the sender-address - although being able to classify it by Subject (ie. certain words/phrases) would also be nice...
Now, if this had been messages just received on my computers MTA - or if I'd set-up
getmail to deliver mail to the MTA - I guess I could use
procmail the normal way... However, what I got is a "dead" file with already stored mail-messages, so that's not an option. I guess I could send the mail through the MTA, but surely there must be a way to process the mail as it is (in the file)?
So, is there a program or command - or some special options to
procmail or a similar command - that lets me "sort" the mail in a mailbox-file into several other mailbox-files, based on the sender/subject of the messages? A small example (eg. of the config-file) would also be appreciated...