Skip to content

Commit

Permalink
LDA Sieve plugin: Fixed sequential exection of LDAP-based scripts.
Browse files Browse the repository at this point in the history
The sequence was broken when the LDAP script attribute does not exist; i.e., when the script is not found.
The NOT_FOUND error is returned at a later instance than normal fs-based scripts, explaining why this problem does not normally occur.
  • Loading branch information
stephanbosch committed Sep 13, 2017
1 parent 15bd353 commit 2b3aca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/lda-sieve/lda-sieve-plugin.c
Expand Up @@ -554,6 +554,10 @@ static int lda_sieve_execute_scripts

more = lda_sieve_execute_script(srctx, mscript,
script, i, discard_script, &error);
if ( error == SIEVE_ERROR_NOT_FOUND ) {
/* skip scripts which finally turn out not to exist */
more = TRUE;
}

if ( discard_script ) {
/* Executed discard script, which is always final */
Expand Down

0 comments on commit 2b3aca5

Please sign in to comment.