[Mimedefang] HELP: filter_sender() not working

Matthew.van.Eerde at hbinc.com Matthew.van.Eerde at hbinc.com
Thu Oct 28 18:13:07 EDT 2004


Alexander Dalloz wrote:
> Am Do, den 28.10.2004 schrieb David F. Skoll um 23:15:
>> 	return (REJECT, "goaway");
>> 
>> is wrong.  It should be:
>> 
>> 	return("REJECT", "goaway");
>> 
>> Similarly, CONTINUE should be "CONTINUE" -- the return values are
>> strings. 
> 
> Maybe a stupid question, but does it matter to use single quotes for
> the action rather than double quotes? The mimedefang-filter manpage
> says to use
> 
> return('REJECT', "goaway");

Either are fine - or qw/REJECT/ or qq{REJECT} or q|REJECT|...

You could even go so far as to do something like

sub REJECT(); sub REJECT() { return "REJECT"; }
sub CONTINUE(); sub CONTINUE() { return "CONTINUE"; }

which would allow you to get away with a later
return (REJECT, "goaway");

but this is not to be recommended

Matthew.van.Eerde (at) hbinc.com                 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com         Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"




More information about the MIMEDefang mailing list