From 6185bb684bef39c841cab4a58b54eb85b0a357c9 Mon Sep 17 00:00:00 2001 From: Ken Murchison Date: Sat, 4 Nov 2023 06:00:59 -0400 Subject: [PATCH] mboxevent.c: need to initialize excluded_flags if using idle_notifier --- imap/mboxevent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imap/mboxevent.c b/imap/mboxevent.c index d16234b0b8..90959c0481 100644 --- a/imap/mboxevent.c +++ b/imap/mboxevent.c @@ -232,7 +232,8 @@ EXPORTED int mboxevent_init(void) const char *options; int groups; - if (!(notifier = config_getstring(IMAPOPT_EVENT_NOTIFIER))) return 0; + if (!(notifier = config_getstring(IMAPOPT_EVENT_NOTIFIER)) && !idle_notifier) + return 0; /* some don't want to notify events for some IMAP flags */ options = config_getstring(IMAPOPT_EVENT_EXCLUDE_FLAGS);