From: Timo Sirainen Date: Sat, 15 Nov 2008 18:17:10 +0000 (+0200) Subject: IMAP: SEARCH command was returning EXPUNGEs to client. X-Git-Tag: 1.2.alpha4~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adfcbb3f5a375049800d8624c0cd7752d6f74d89;p=thirdparty%2Fdovecot%2Fcore.git IMAP: SEARCH command was returning EXPUNGEs to client. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-search.c b/src/imap/cmd-search.c index 7bde7bd7d1..20c8fa8865 100644 --- a/src/imap/cmd-search.c +++ b/src/imap/cmd-search.c @@ -456,7 +456,7 @@ static bool cmd_search_more(struct client_command_context *cmd) } sync_flags = MAILBOX_SYNC_FLAG_FAST; - if (cmd->uid && !ctx->have_seqsets) + if (!cmd->uid || ctx->have_seqsets) sync_flags |= MAILBOX_SYNC_FLAG_NO_EXPUNGES; return cmd_sync(cmd, sync_flags, 0, t_strdup_printf("OK Search completed (%d.%03d secs).",