From 41579643ee25655f5bbb9b6a3533f0bb4a69fd85 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 15 Dec 2016 15:00:54 +0200 Subject: [PATCH] imap: Fix STORE UNCHANGEDSINCE to work with >32bit modseqs. --- src/imap/cmd-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap/cmd-store.c b/src/imap/cmd-store.c index 211da0d751..16fc26e2f1 100644 --- a/src/imap/cmd-store.c +++ b/src/imap/cmd-store.c @@ -183,7 +183,7 @@ bool cmd_store(struct client_command_context *cmd) mail_search_args_unref(&search_args); i_array_init(&modified_set, 64); - if (ctx.max_modseq < (uint32_t)-1) { + if (ctx.max_modseq < (uint64_t)-1) { /* STORE UNCHANGEDSINCE is being used */ mailbox_transaction_set_max_modseq(t, ctx.max_modseq, &modified_set);