3 messages in net.sourceforge.lists.courier-maildrop[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:[maildropl] maildrop's foreach loopActions...
From:Matthias Berndt (matt@gmx.de)
Date:Apr 27, 2007 12:13:12 pm
List:net.sourceforge.lists.courier-maildrop

Hi,

I don't quite understand how maildrop's foreach loop works. There is an example email in the attachment. And here is my maildrop script. The purpose is simply to echo the local-part of every To: adress ending in @foobar.com or @foobar.de on the command line once and delete the mail.

/To:\s.*/ foreach getaddr($MATCH) =~ /([^@\s]+)@foobar.(com|de)/ { echo $MATCH1 } to "/dev/null"

How does this work!? textgoeshere textgoeshere