procmail
[Top] [All Lists]

Re: Re-sending mail through procmail manually?

2000-05-13 09:45:33
Mark asked,

| I accidentally left my home directory mode 777 (don't ask), so 
| sendmail/procmail didn't trust the rc and wouldn't filter using the 
| .procmailrc in my home dir...
| 
| Now I'm got a large spool file in my /var/spool/mail mailbox, and I'd like 
| to re-filter it, but can't exactly figure out how...
| 
| I tried doing "cat file |exec /usr/bin/procmail" (as the owner of the 
| file), but procmail didn't process all 200-some messages contained in the 
| file, only the 1st message...

See the last part of the procmail(1) man page.  It explains exactly how to do
that.  Search that man page for the word "postprocess."