Re: Procmail Recipes on old messages?
* Jason Rashaad Jackson <jrashaad@umich.edu> spake thus:
> 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!
Indeed there is.
$ formail -s procmail < mbox
Where `mbox' is the file that contains the messages you want to filter.
Be sure that no procmail filter rule (nor the default folder) write to
mbox. I will imagine that you get a nice loop (not tested though ;).
Regards,
Stig
--
brautaset.org
Registered Linux User 107343
Reply to: