92f9871ac981201fe0a47f6c909f790cce14b240 |
|
13-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mail_search_args_simplify() - simplify "x AND NOT x"
Implemented for SEARCH_KEYWORD, SEARCH_TEXT, SEARCH_BODY and SEARCH_HEADER*.
Dates and sizes would need special code, which gets a bit complicated. |
abb5d20d3155db02a1afec4066d52707ba9d4e52 |
|
15-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
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. |
cc935aff970ed6c24d136cc560c7e705a49d536c |
|
23-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_search_args_simplify() handles now SEARCH_HEADER*/TEXT/BODY
These are especially useful with lib-fts, where stemming and other filtering
can produce duplicates. There's some internal deduplication, but it doesn't
catch all of these. |