On 7-Feb-07, at 12:13 PM, Jens Weibler wrote:
Matt Sergeant wrote:
On 5-Feb-07, at 2:24 PM, Jens Weibler wrote:
I'm wondering if there's any concept for "dynamic" pluginsettings?
Yes. Create a 'config' hook.
mmh, there must be a better way to do this.
I have to change e.g. the reject_threshold for spamassassin for each
recipient/connection :(
If I use connection->notes each plugin must use it. And I always
have to
check/set this value.
Easier would be something like:
GetConfig($key);
Which will search at first in scopes like connection, recipient,
sender
and if not found at last global.
Any comments?
Well that's just an implementation detail. But you still need to
create the config hook.