procmail
[Top] [All Lists]

RE: How to get a word out of email body

2007-06-26 00:54:51

On Mon, 25 Jun 2007, Alex Kosach wrote:

Sorry to ask a stupid question but what can I do match just a beginning
of the line (Myname) if there would one extra word on the line


Example:
Your mail to the following recipients could not be delivered because
they are not accepting mail from someone(_at_)somewhere(_dot_)com:
      Myname  (UNUSED)


* 1^1 B ?? ^\/.*
* MATCH ?? [    ]*\/[^  ]+

        [   ] is SPAC+TAB

Bye,
  Udi





-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of 
Dallman Ross
Sent: Monday, June 25, 2007 2:25 PM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: RE: How to get a word out of email body

Alex Kosach schrieb am Monday, June 25, 2007 7:07 PM:

Doe anybody knows a logic or may suggest a recipe of how to get a last
word (Myname) from the email like that:

Your mail to the following recipients could not be delivered because
they are not accepting mail from someone(_at_)somewhere(_dot_)com:
     Myname


 SPACE = ' '
 TAB   = '    '  #make sure it's a tab char and not spaces

 :0 B
 * H ?? ^FROM_MAILER
 * $ ()\<Your mail (.+$)*(_dot_)*(_at_)[^$WS]+:$.+\/[^$WS]+
 { SOMENAME = $MATCH }

Dallman
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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