NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Re: (Score:1)
procmail doesn’t parse your mailbox, it only directs mail that is fed to it to the right place according to its rules. So you have to feed the mails from your inbox to it. This is achieved using
formail -s procmail < /your/mailspool. With-s,formailwill parse its input and invoke the given program for each mail, feeding the mail to the program’s stdin. Very handy tool, it can do many neat things with mail.Ah yes, I’d forgotten about this. Here are some pertinent bits from my
.muttrc:The
sourceline generates onemailboxes =foomutt command for each file in~/Mail, and the macros make sure that when I hit c, I don’t get the file browser, but rather a list of all the mailboxes I have defined with themailboxescommand. (You can still switch to the file browser using Tab.)Reply to This
Re: (Score:1)
Oh! And don’t forget to save the mails from your inbox/spoolfile to another place before you re-filter them, else they’ll show up in your inbox in duplicate. I usually do this simply by
mving my spool out of the way before piping it intoformail(it gets recreated automatically byprocmail).Re: (Score:2)
formail, great. I knew there must be something already to refeed without me having to write a script to do itThanks for the
.muttrchints too. I'll add those in a bit and see how I get on. Thanks.