procmail
[Top] [All Lists]

Just thought I got a hang of it

2007-05-21 22:17:26
Hi,

Learning from the correspondences of the list, I thought I got a hang of
the writing simple express until:

:0
* ^Subject:.*GENERATE:\/.*[^:PASSWD]
{ LOGIN =  $MATCH }

I want to make sure that the subject line MUST have the exact format
like:

             GENERATE:kflee:PASSWD

and the LOGIN returned would be kflee. Null would be returned if it does
not match exactly.

I thought \/.*[^:PASSWD] expression means to return the right hand side
but chop off the part 
starting with :PASSWD. Obvisouly I am wrong. Can anyone suggest an
easier way other than the 
clusmy way of using gawk that I know off?

Rgds,
Kfl. HK.




 


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