Skip to content

Commit

Permalink
imap: Fix NOTIFY to parse more than just the first event-group
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and GitLab committed Jun 18, 2017
1 parent 906a651 commit 64d2efd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imap/cmd-notify.c
Expand Up @@ -292,10 +292,10 @@ cmd_notify_set(struct imap_notify_context *ctx, const struct imap_arg *args)
ctx->send_immediate_status = TRUE;
args++;
}
for (; args->type != IMAP_ARG_EOL; args++) {
if (!imap_arg_get_list(args, &event_group))
return -1;

if (!imap_arg_get_list(args, &event_group))
return -1;
for (; event_group->type != IMAP_ARG_EOL; event_group++) {
/* filter-mailboxes */
if (!imap_arg_get_atom(event_group, &filter_mailboxes))
return -1;
Expand Down

0 comments on commit 64d2efd

Please sign in to comment.