Skip to content

Commit

Permalink
plugins: imap-filter-sieve: Fix FILTER SIEVE SCRIPT command parsing.
Browse files Browse the repository at this point in the history
After finishing reading the Sieve script, the command parsing sometimes didn't
continue with the search arguments. This is a time-critical bug that likely
only occurs when the Sieve script is sent in the next TCP frame.
  • Loading branch information
stephanbosch authored and cmouse committed Aug 10, 2018
1 parent 99af69d commit c7bd745
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/imap-filter-sieve/cmd-filter-sieve.c
Expand Up @@ -320,6 +320,10 @@ cmd_filter_sieve_script_parse_value(struct client_command_context *cmd)
imap_filter_deinit(ctx);
return TRUE;
}

imap_parser_reset(ctx->parser);
cmd->func = imap_filter_search;
return imap_filter_search(cmd);
}

if ((ret=cmd_filter_sieve_script_parse_value_arg(ctx)) == 0)
Expand Down

0 comments on commit c7bd745

Please sign in to comment.