OT - How to test procmail on existing mailbox

Todd Zullinger tmz at pobox.com
Mon Sep 15 17:29:30 UTC 2008


Mike Burger wrote:
> Instead of running it in the method noted above, I usually run:
> 
> cp /path/to/mailbox ~ (copy my mailbox to my homedir)
> cat /dev/null> /path/to/mailbox (clear out the contents of my main inbox)
> formail -s procmail < ~/mailbox (process the copy)
> rm ~/mailbox (once satisfied with the results)
> 
> The reasoning behind this is that, if you use the originally posted
> method, anything that would normally wind up in your inbox, and not
> be filtered into other folders, would wind up being duplicated in
> your inbox.

Indeed, and this is more what's outlined in the promail man page.  I
didn't have time to go into the details and I figured that anyone
using procmail would be wise enough to check the man page (or at least
make some backups before feeding their precious mailboxes to it. :)

That may or may not be a valid assumption on my part, so thanks for
filling in the details for the benefit of the archives.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I figure that if God actually does exist, He's big enough to
understand an honest difference of opinion.
    -- Isaac Asimov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 542 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20080915/b7488fa4/attachment-0001.bin 


More information about the users mailing list