Felix,

> What is considered the best way to introduce a configuration value? I
> read about maps and policy banks but did not find a real solution what
> to do...
>
> I want to add a per-user setting for the spam filter to use. I thought
> about using something like
> > @spam_filter_maps = ({ '[EMAIL PROTECTED]' => 'dspam', });

Makes sense.

> as shown in the the sample configuration file:
> > [EMAIL PROTECTED] = (
> > #  { '[EMAIL PROTECTED]' => 8.0, '.example.com' => 6.0 },
> > #  \$sa_tag2_level_deflt,   # catchall default
> > #);
>
> Therefore I expected that
> > lookup(0, '[EMAIL PROTECTED]', ca('spam_filter_maps'))
> should return 'dspam' but the call always returns (undef, undef).

The third argument to sub lookup should be a list, not a ref to a list.
The call should be:
  lookup(0, '[EMAIL PROTECTED]', @{ca('spam_filter_maps')} )
like in some other places in the code.

  Mark


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to