]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
imapc: Don't pass private flag search criteria to the remote server main
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 29 Jul 2026 22:54:36 +0000 (22:54 +0000)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 4 Aug 2026 13:10:47 +0000 (13:10 +0000)
commitf881d213d80e23e5b1f8717a5d389bb8a38cf673
treefc453776716c4b85bdf7dee74e403b49601fdff3
parent4d98c82f11ff7eea91f912e33b190eee9c874d41
imapc: Don't pass private flag search criteria to the remote server

With private indexes the \Seen flag is stored locally, so the remote server
doesn't know its current value. Searching e.g. "SEEN SUBJECT foo" passed the
SEEN criteria to the remote server, which evaluated it against a flag that
isn't authoritative, and the result was then used as-is. Leave such flag args
out of the remote query and evaluate them locally.
src/lib-storage/index/imapc/imapc-search.c