29 lines
959 B
Diff
29 lines
959 B
Diff
|
From 64d2efdc4b0bdf92249840e9db89b91c8dc0f3a3 Mon Sep 17 00:00:00 2001
|
||
|
From: Timo Sirainen <timo.sirainen@dovecot.fi>
|
||
|
Date: Sat, 17 Jun 2017 14:38:22 +0300
|
||
|
Subject: [PATCH] imap: Fix NOTIFY to parse more than just the first
|
||
|
event-group
|
||
|
|
||
|
---
|
||
|
src/imap/cmd-notify.c | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/src/imap/cmd-notify.c b/src/imap/cmd-notify.c
|
||
|
index 4c6aad975..94cf103b8 100644
|
||
|
--- a/src/imap/cmd-notify.c
|
||
|
+++ b/src/imap/cmd-notify.c
|
||
|
@@ -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;
|