Skip to content

Commit

Permalink
plugins: imap_filter_sieve: Implement the UID FILTER command.
Browse files Browse the repository at this point in the history
Although it was documented and implemented in essence, it was not actually
available.
  • Loading branch information
stephanbosch committed May 27, 2018
1 parent 6535eab commit 69cfb80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/imap-filter-sieve/imap-filter-sieve-plugin.c
Expand Up @@ -38,6 +38,7 @@ const char imap_filter_sieve_plugin_binary_dependency[] = "imap";
void imap_filter_sieve_plugin_init(struct module *module)
{
command_register("FILTER", cmd_filter, COMMAND_FLAG_USES_SEQS);
command_register("UID FILTER", cmd_filter, COMMAND_FLAG_BREAKS_SEQS);

imap_filter_sieve_module = module;
next_hook_client_created = imap_client_created_hook_set(
Expand All @@ -48,6 +49,7 @@ void imap_filter_sieve_plugin_init(struct module *module)
void imap_filter_sieve_plugin_deinit(void)
{
command_unregister("FILTER");
command_unregister("UID FILTER");

imap_filter_sieve_deinit();
imap_client_created_hook_set(next_hook_client_created);
Expand Down

0 comments on commit 69cfb80

Please sign in to comment.