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', });
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 ca call works as Dumper says:
$VAR1 = [
{
'[EMAIL PROTECTED]' => 'dspam'
}
];
Any ideas?
--
Felix
-------------------------------------------------------
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/