procmail
[Top] [All Lists]

Re: Re-sending mail through procmail manually?

2000-05-12 02:33:53
you need to pipe it through formail, not procmail directly.

%> cp /var/spool/mail/yourlogin newmail
%> cat newmail | formail -t -s procmail -f-

Formail splits the spool file into individual messages and pipes each of
them through procmail.

On Tue, 9 May 2000, W. Mark Herrick, Jr. wrote:


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...

Any help appreciated.

   W. Mark Herrick, Jr. <markh(_at_)va(_dot_)rr(_dot_)com>          _.._      
  _.._
        Operations Security Manager              ,','"_:./\/\,'_ `.`.
        Usenet Operations Team Lead             /_:--:_ ( oo ) _:--:_\
    Road Runner Security - 703.345.2477        /'      `'`vv'`'      `\
<abuse(_at_)rr(_dot_)com><security(_at_)rr(_dot_)com><fraud(_at_)rr(_dot_)com>