On 01.08.16 10:42, Thomas Schneider wrote: > Yubin: > > > How can I have that Thunderbird message filtering in mutt? > > I have been using procmail to filter mail into different mail boxes. > Then I look at those boxes with mutt under a script that opens each > one. This allows me to categorize my junk mail and then move them to > my main mail box if I want to keep one.
There's no need for any script. Once procmail has sorted incoming mail into a bunch of mailboxes, e.g. one per mailing list, etc., then in .muttrc, something like: mailboxes +/family_u /var/spool/mail/erik +/avr_gcc_u +/vim_u +/mutt_u mailboxes +/procmail_u +/todo +/cnc_linux_u +/luv-main +/binutils_u mailboxes ~/postponed # So it's accessible in the 'y' list. Now mutt presents the highest priority mailbox which has new mail, and 'c' changes folder to the next highest with new mail, skipping any stale ones in between. I have some simple spam filtering, and should maybe add +/spam as the last mailbox, as a reminder to look in there once in a blue moon for false positives. The stuff I want to keep goes into ~ 1200 categorised mailboxes. Erik