3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop's foreach loop
FromSent OnAttachments
Matthias BerndtApr 27, 2007 12:13 pm 
Sam VarshavchikApr 27, 2007 2:43 pm 
Matthias BerndtApr 28, 2007 1:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] maildrop's foreach loopActions...
From:Matthias Berndt (matt@gmx.de)
Date:Apr 28, 2007 1:31:21 am
List:net.sourceforge.lists.courier-maildrop

From the maildropfilter man page, right in the description of

foreach:

Subpatterns are not processed. Only the MATCH variable will be set for each found pattern.

Well, my problem is that they _are_ in fact being processed (e. g. echoed on the console). The only way I found to solve this problem was to do something like this:

foreach getaddr($MATCH) =~ /.+/ { if($MATCH =~ /([^@\s]+)@foobar.(com|de)/) echo $MATCH1 }

I can't believe it's meant to be this way, because like that, you can use only trivial regexes in the foreach loop (e. g. those not containing any parenthesis).