]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
IMAP: SEARCH command was returning EXPUNGEs to client.
authorTimo Sirainen <tss@iki.fi>
Sat, 15 Nov 2008 18:17:10 +0000 (20:17 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 15 Nov 2008 18:17:10 +0000 (20:17 +0200)
--HG--
branch : HEAD

src/imap/cmd-search.c

index 7bde7bd7d10542a5126398d69d694859b436d4bd..20c8fa8865ce355e9cf504e9b30ce5cc53299bd1 100644 (file)
@@ -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).",