At 14:15 2002-06-09 -0400, Hermann Wecke did say:
My question is: how I can keep a copy - intact - of the original message?
I tried ":0c" (in the first line) but it didn't make any difference.
The first line being right before the ^From:.*service ... bit? If so,
there's no reason you shouldn't have had an unmodified copy hanging around
- unless you discard it in a subsequent rule. What does your VERBOSE
LOGFILE tell you?
You ARE using a VERBOSE logfile to diagnose the problem, right?
If I add the ":0c" to the last line, it will copy the altered message.
Well, uh, that's because you're 'c'opying an altered message (after the
'f'ilter). No surprise there.
You could just roll it all together, like the following:
# do all this on a copy of the message, retaining one for our regular mailbox
* ^Subject:.*Receipt for your debit card purchase
| ( sed 's/^This is to notify you that //;/Please log in to your PayPal/,$d' \
| formail -I"From: PayPal <nobody>" -I"Subject:" -I"Precedence:bulk" \
-I"Errors-To: nobody" -I"Reply-To: nobody" ) \
| $SENDMAIL mypager(_at_)nextel
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
procmail mailing list