David, did you mean function, that executed when dbmail do something like
SELECT FROM dbmail_sievecmd WHERE username='username'? and then function
should return sieve code to SELECT? really, i don't know sieve-cmd
implementation in dbm whery well, but i think, it should be about this.

Alexander
> Why not just use a conditional union or function (not sure
> about MySQL here).  We do this now for our Spam rules from
> Amavis.  We just use a function that selects the specific
> users rules, or the groups rules, or the default rules.
>
> I don't see why the sieve select couldn't work the same
> way if you really wanted it to.  You could change the select
> statement in the code then make your own custom function.
>
> It would be nice if you could customize your own SQL statements
> at runtime.  FreeRadius does this which we customized the
> snot out of this way.

Reply via email to