procmail
[Top] [All Lists]

Re: Having problems using $match

2001-09-03 00:18:11
In your message regarding Re: Having problems using $match dated Sun, 2 Sep
2001 13:37:40 -0400, Matt Dunford said that ...

 Here's a good book on regex -- not necessarily for beginners though.
 But I'd give it a try anyway.  It has plenty of examples.
 
   - http://www.oreilly.com/catalog/regex/ - 

Thank you! Looks like a good investment.
 
 I think this is what you want to do:
 
 :0
 * ^Subject: *failure notice
 * B ?? To: \/[-_(_dot_)+a-z0-9]+(_at_)[-_(_dot_)+a-z0-9]+
 | echo $MATCH >> $HOME/somefile
 
 This recipe will append an email address to 'somefile'.  It will also
 trash the original email message.

Thanks, I see now my original concept of \/ matching was wrong. I thought
what followed \/ was omitted from the match. I see now that it is used to
define what is matched.

It's painfully obvious I'll never understand Procmail until I get a basic
understanding of regex.

Thanks again.
-- 
Best Regards,

Tim Rice
------------------
Stationery & Stuff
Patong Beach, Phuket Thailand
Tel: +66 76 341735 Fax: 340218
USA Tel/Fax/Voicemail: +1 435 807 6433
http://www.thaistuff.com
http://www.computerstuff.net
e-mail:tim(_at_)computerstuff(_dot_)net
Pager: 108840(_at_)152mail(_dot_)com
_______________________________________________
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>