[dovecot/core] abb5d2: lib-storage: Fix "*" in SEARCH seqset/uidset
GitHub
noreply at github.com
Thu Dec 15 14:30:09 UTC 2016
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: abb5d20d3155db02a1afec4066d52707ba9d4e52
https://github.com/dovecot/core/commit/abb5d20d3155db02a1afec4066d52707ba9d4e52
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2016-12-15 (Thu, 15 Dec 2016)
Changed paths:
M src/lib-storage/mail-search-args-simplify.c
M src/lib-storage/test-mail-search-args-simplify.c
Log Message:
-----------
lib-storage: Fix "*" in SEARCH seqset/uidset
4294967295 is used for "*", which matches the last existing message.
Which we don't know what it is at the time of search args simplification,
so avoid making any assumptions about it.
It's a bit ugly that 4294967295 can't be used as a valid UID, but this
restriction has already existed since the beginning of Dovecot. A future
alternative might be to add MAIL_SEARCH_ARG_FLAG_SEQSET_WITH_STAR, but
that's a bit complicated change.
More information about the dovecot-cvs
mailing list