Hi,
I run an old version of courier (0.44.2), have been using it for years and
very happy with it.
For some strange reason my mailfilter has stopped working for $MATCH1
recognition. It used to work fine but something is strange.
I have something like this:
if (/^X-Request:\s*(.*)/)
{
echo "($MATCH, $MATCH1, $MATCH2)"
# do something...
}
The message comes in with a header line like this:
X-Request: 547 20070409195446
So it's the header followed by 2 numbers, each separated by a space.
I know this used to work, but now all I get from the echo is,
(X-Request: 547 20070409195446, , )
I would have expected to see
(X-Request: 547 20070409195446, 547 20070409195446, )
because there is no $MATCH2, however there certainly is a $MATCH1. But all
that is getting recognized is the $MATCH.
A reminder, this is with an old version of courier, still using the
non-PCRE
expression matching.
What could be causing this confusion? I don't know what has changed, and I
haven't updated courier at all for a long time, I don't see a reason for
the
pattern matching not working.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users