]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imap: Add regression test for mailbox state import error handling main
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 26 Jun 2026 10:34:39 +0000 (10:34 +0000)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 3 Aug 2026 14:10:52 +0000 (14:10 +0000)
commitbc995c5497e83c74dc21ef83bcbb7c8bdb4dc73e
treecebcf3bae4ab60535e5873cefb138ecd515de7a1
parent2646c57abfb5b2e8b044e09bb380f8fde8a30e27
imap: Add regression test for mailbox state import error handling

Export a valid mailbox state, then recreate the mailbox with a different
GUID so the stored mailbox no longer matches the exported state, and
verify imap_state_import_internal() rejects it instead of returning
IMAP_STATE_OK. Without the import_state_mailbox() fix the mailbox-open
error is swallowed and import wrongly succeeds, which this test catches.
src/imap/test-imap-client-hibernate.c