Sieve: carry global variables from sieve_before to user sieve scripts
stephan at rename-it.nl
Sun Oct 26 14:17:58 UTC 2014
On 10/25/2014 3:50 PM, Alexander 'Leo' Bergolth wrote:
> On 20.10.2014 11:48, Alexander 'Leo' Bergolth wrote:
>> Is there a way to initialize global variables with default values in
>> sieve_before scripts that can be used in the sieve_default script or in
>> user scripts?
> OK. I guess that's currently not possible.
You're right. The global variable namespace is strictly limited to the
tree of scripts created by the the "include" extension. No variables are
shared between scripts executed in the multiscript sequence
> So maybe it is possible to take another approach:
> Instead of executing sieve_before scripts and sieve_default side by
> side, maybe it is feasible to set the "before-script" as sieve_default
> and include the default personal user script from there if it exists?
> That way global variable inheritance should work, shouldn't it?
A bit ugly, but I guess it would work.
> Did anyone try this approach? Any caveats? Any security implications?
One big issue with this is that the user can choose not to include the
More information about the dovecot