My mailserver consists of dovecot and postfix.
I am receiving alot of mails from different mailing lists. These mails should directly go into my inbox when they come in, because it is easier to maintain a single inbox for me then multiple ones.
After a time, my inbox is full with all these mailing list mails, which i do not like. I want to have a cronjob which periodically sorts my (read) mailing list mails (filtered by header) into special folders.
What is the easiest way of doing such? Is this possible without requiring additional tools?
I do NOT want to filter mail when it comes in.
Maybe it is possible to use a command-line imap-client to do that?