Hello, I have this piece of code in my .mailfilter:
MATCH1 = "None" /^X-Flofify-Class: (.*)$/ class = $MATCH1 log "Class: $class" if ($class eq "None") to "$MDIR/florian.lind...@xgm.de" else to "$MDIR/florian.lind...@xgm.de/.$class" But when there is no match at all (e.g. no X-Flofify-Class header existing) the value of MATCH1 is not None but still the one from the previous regexp operation (somewhere else in my code). How can I set a default value if not match is found? Thx, Florian ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users