procmail
[Top] [All Lists]

Re: egrep returns 1, procmail doesn't match?

2003-03-09 09:25:05
poff(_at_)sixbit(_dot_)org wrote:

:0BH:
* ^To: paypal(_at_)xxx(_dot_)com
* ^Subject: Notification of Payment Received
* Item/Product Name: xxx.com Donation
* for \/.*

The last condition tests only 'for<space>', 
from the first header-line on, so the first 
'Received: ... for ...' will be caught. 

I assume here that you want to match a 
for-line from the body. Untested:

  :0
  * ^To: paypal(_at_)xxx(_dot_)com\>
  * ^Subject: Notification of Payment Received
  {
    :0Bc
    * Item/Product Name: xxx.com Donation
    * for \/.*
    | php -q $HOME/bin/paypal.php "$MATCH"

    :0:
    inbox
  }

-- 
Affijn, Ruud


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