procmail
[Top] [All Lists]

MATCH bug?

1998-06-22 15:42:54
Procmail 3.11pre7.  Maybe there's something wrong with my
brain, but I can't see how CASE2 could become anything but either
"18:" or "51:" in the following, which I stumbled on while
playing with breaking up a From_ line:

The relevant parts of the rc file:
===begin excerpt===
LOG="debug: FROMLINE is: $FROMLINE
"
VERBOSE=yes
:0
* FROMLINE ?? .*\/..:
{ CASE1=$MATCH }
:0
* FROMLINE ?? [^ ]+ +.*\/..:
{ CASE2=$MATCH }
===end excerpt===

The resulting log:
===begin excerpt===
debug: FROMLINE is: From someone(_at_)somewhere(_dot_)com  Fri Jun 19 18:51:56 
1998
procmail: [2734] Mon Jun 22 16:35:04 1998
procmail: Assigning "MATCH="
procmail: Matched "18:"
procmail: Match on ".*\/..:"
procmail: Assigning "CASE1=18:"
procmail: Assigning "MATCH="
procmail: Matched " Fri Jun 19 18:51:"
procmail: Match on "[^ ]+ +.*\/..:"
procmail: Assigning "CASE2= Fri Jun 19 18:51:"
===end excerpt===

Huh?

BTW, without the "+" just before the ".*" the result is "18:";
however, " +.*" should be the same as " .*", right?

Thanks,
Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net>

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