2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Using $MATCH, $MATCH2...
FromSent OnAttachments
Jim McConnellFeb 13, 2004 10:16 pm 
Torsten VellerFeb 14, 2004 6:16 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] Using $MATCH, $MATCH2 intelligently?Actions...
From:Torsten Veller (ml-@veller.net)
Date:Feb 14, 2004 6:16:38 am
List:net.sourceforge.lists.courier-maildrop

* Jim McConnell <ji@mcconnell.net>:

Maybe this one could help: I think your problem is that 'to' terminates the 'foreach' iteration.

gdbmopen("$FILTERS/lists.db") foreach /^(To|Cc): .*/ { foreach (getaddr($MATCH)) =~ /.+/ { destbox = gdbmfetch($MATCH) log $MATCH log $destbox

- to $DEFAULT/$destbox + if ( ${destbox} ne "" ) + cc ${DEFAULT}/${destbox}

} } gdbmclose

(+ exit)