]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imapc: Fix expunges+appends in same session with imapc_features=no-msn-updates
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 17 Apr 2018 12:46:41 +0000 (15:46 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 18 Apr 2018 08:48:07 +0000 (11:48 +0300)
commit700d8d1d822d37535393951156cc3ef9e2f45a4b
treeb4a1e60f7dd152744fdd14ef4b5b47a235b0dfc5
parent10d49b063ea05ffca2585f7590017ed2f6664807
imapc: Fix expunges+appends in same session with imapc_features=no-msn-updates

Since the EXPUNGEs were ignored, the sequence numbers weren't updated.
When a new mail arrived, the sequence number sent by the remote IMAP server
pointed to existing mails in imapc's mapping. Fix this by changing the
sequence number if the returned UID is >= next_uid.

Fixes "FETCH UID mismatch" errors.
src/lib-storage/index/imapc/imapc-mailbox.c