[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Procmail Recipes on old messages?



also sprach Jason Rashaad Jackson (on Wed, 19 Sep 2001 05:03:41PM -0400):
> OK.  I have successfully gotten procmail up and running on my local
> host, and it's happily filtering incoming mail.  This is great for
> new stuff, but what about all the old messages in my spoolfile that
> have piled (and piled and piled) up while I've been fiddling with
> procmail?  Is there any way to implicitly define a folder (mbox,
> whatever) for procmail to work it's magic on?  Kinda like KDE's 'Run
> Rules Now' switch?  Any help, as always, would be much appreciated.
> Thanks!

first, please format your mail to 70 characters a line.

second, assume you have a mailbox format file ~/mbox, then do

formail -s procmail < ~/mbox

and procmail will do its magic on every file. this works for mailbox
only, for Maildir and the others, you have to go different routes...

martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
-- 
this email was written on an os using the viral 'gpl' as it's license.
please check with billy gates before continuing to read this message.

Attachment: pgpaGoMNuxI3Z.pgp
Description: PGP signature


Reply to: