procmail
[Top] [All Lists]

Re: [Announcem.] Softlabs AntiVirus 0.5.5 has been released on SourceForge.net

2004-03-23 04:14:28
On Mon, 22 Mar 2004, 23:23 GMT+01 Holger Wahlen wrote:

No, if there's no actual match, MATCH retains its value. (You only had
matching expressions in your example, that's why you didn't notice.)
Try this ...

  :0
  * ^Subject: \/foo
  { } 

  match1=$MATCH

  :0
  * ^Subject: \/bar
  { }

  match2=$MATCH

... with a message with subject "foo":

  Assigning "MATCH="
  Matched "foo"
  Match on "^Subject: \/foo"
  Assigning "match1=foo"
  No match on "^Subject: \/bar"
  Assigning "match2=foo"

The "foo" from the first recipe remains in MATCH even though there's a
\/ in the second one.

thanky for that clear example. So the thing is that 'Assigning
"MATCH="' will only be assigned before a '\/' occurs that actually
matches?

rob.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail