procmail
[Top] [All Lists]

Re: Troubles assigning chain of shell pipes to a variable

2005-06-15 00:18:01
Justin Gombos:

I'd
like to find out specifically what's wrong with my syntax.

That it's not pure procmail.
:)


Your code is roughly equivalent to:

  :0
  * B ?? ()\/^.*^.*^.*^.*^.*^.*(^ *)*^^
  * MATCH ?? ()\<\/[-_a-z0-9(_dot_)]+(_at_)[-_a-z0-9(_dot_)]+
  { SIGADD = "$MATCH" }


In the first condition line I MATCH the last 6 lines, from the Body
(plus any trailing empty lines).
Insert '^.*' elements (right after the \/ MATCH operator) for more
lines.

In the second condition I reuse the result from the previous match, to
MATCH the first thing resembling an e-mail address.

It works for messages from this list.

-- 
Grtz, Ruud


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