procmail
[Top] [All Lists]

PayPal alerts (was: Breaking news alerts (procmail and sed))

2002-06-09 15:40:46
The recipe below is based on one found in this list previously
(http://www.rosat.mpe-garching.mpg.de/mailing-lists/procmail/2001-12/msg00085.html)

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.

If I add the ":0c" to the last line, it will copy the altered message.


:0
* ^From:(_dot_)*service(_at_)paypal\(_dot_)com
* ^Subject:.*Receipt for your debit card purchase
{
        # Trim the fat :-)
        :0 fb w
        | sed 's/^This is to notify you that //;/Please log in to your 
PayPal/,$d'

        ###     Send a copy to the cell phone
        :0fhw
        |formail -I"From: PayPal <nobody>" -I"Subject:" -I"Precedence:bulk" 
-I"Errors-To: nobody" -I"Reply-To: nobody"

        :0
        ! mypager(_at_)nextel
}
# end PayPal



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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