André Rodier
2021-Apr-05 09:19 UTC
failed to compile a sieve script with optional include
Hi,
I am trying to compile the following sieve script:
-----------------------------
require [
"variables",
"include",
"relational",
"imapsieve"
];
global "importing";
include :personal :optional "pre-sent-checks";
if string :count "eq" "${importing}" "1"
{
keep;
stop;
}
-----------------------------
But I have this error:
> sent-checks: line 15: error: include: personal location for included
> script `pre-sent-checks' is unavailable (contact system administrator
> for more information).
> sent-checks: error: validation failed.
> sievec(root): Fatal: failed to compile sieve script 'sent-
checks.sieve'
What should I do to compile a script with an optional user script,
please ?
Thanks
André Rodier
2021-Apr-05 11:24 UTC
failed to compile a sieve script with optional include
On Mon, 2021-04-05 at 10:19 +0100, Andr? Rodier wrote:> Hi, > > I am trying to compile the following sieve script: > > ----------------------------- > require [ > "variables", > "include", > "relational", > "imapsieve" > ]; > > global "importing"; > > include :personal :optional "pre-sent-checks"; > > if string :count "eq" "${importing}" "1" > { > keep; > stop; > } > ----------------------------- > > But I have this error: > > > sent-checks: line 15: error: include: personal location for > > included > > script `pre-sent-checks' is unavailable (contact system > > administrator > > for more information). > > sent-checks: error: validation failed. > > sievec(root): Fatal: failed to compile sieve script 'sent- > checks.sieve' > > What should I do to compile a script with an optional user script, > please ? > > ThanksI realised that I don't need to compile the script myself, and that dovecot is compiling it on demand, without error. I hope this helps others. Andr?