procmail
[Top] [All Lists]

Having problems using $match

2001-09-03 00:25:45
In your message regarding Re: No match on Invalid recipient: dated Sat, 1
Sep 2001 23:59:23 +0700, Tim Rice said that ...

Hello All,

Two questions if I may, 
First my problems are always caused from my lack of understanding regular
expressions, good books are hard to find in my part of Thailand so I'll
need to order one from Amazon. Any recommendations on regex books for
beginners? Something like the procmailex pages but for regx? I need
something with lots of examples.  

Second, I'm trying to grab an email address from the body and add it to a
file.
I think it should be something like this, but I cant get the Match usage
correct.

:0:
* ^From: Subject: *failure notice
* B ?? To: \/[  ]*
$MATCH >> $HOME/somefile

The "To: \/" I'm trying to grab and add is in the body, not the header.
Verbose does "Match" something on line two, but line 3 tends to make new
directories and call comsat.

Appreciate any help. 


-- 
Best Regards,

Tim Rice
---------------
Stationery & Stuff
Phuket Thailand
http://www.thaistuff.com
http://www.computerstuff.net
_______________________________________________
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>