procmail
[Top] [All Lists]

Re: procmailrc

1998-04-30 14:37:01
I am looking to use procmail and formail to strip the header of a message and
append the body of a message to a txt file.

I am using this and it does not work:

:0
*^from:*
{
        :0 hwc
        | formail -I "" >> message
}

No need to use formail:

   :0 bc:
   message

To get yours to work, you need to remove your header-only checking (the h
flag):

   :0 wc:
   | formail -I "" >> message

Might also want the locking above, and notice that you don't need the
'*^from:*' line.  If there's no conditions specified, the recipe matches.

Chris

<Prev in Thread] Current Thread [Next in Thread>