dovecot-2.2: lib-storage: SEARCH BODY "" wasn't properly being t...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Dec 6 14:47:43 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/bc3f0e0c7a67
changeset: 19468:bc3f0e0c7a67
user: Timo Sirainen <tss at iki.fi>
date: Sun Dec 06 16:46:30 2015 +0200
description:
lib-storage: SEARCH BODY "" wasn't properly being translated to SEARCH_ALL.
Instead if the next parameter was "" this happened (which could have been an
accidental space in doveadm search-query).
diffstat:
src/lib-storage/mail-search-register-imap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 00817b01020a -r bc3f0e0c7a67 src/lib-storage/mail-search-register-imap.c
--- a/src/lib-storage/mail-search-register-imap.c Sun Dec 06 16:09:55 2015 +0200
+++ b/src/lib-storage/mail-search-register-imap.c Sun Dec 06 16:46:30 2015 +0200
@@ -278,7 +278,7 @@
&sarg->value.str) < 0)
return NULL;
- if (mail_search_parse_skip_next(ctx->parser, "")) {
+ if (sarg->value.str[0] == '\0') {
/* optimization: BODY "" matches everything
(but do this only after checking charset and key are ok) */
return mail_search_build_new(ctx, SEARCH_ALL);
More information about the dovecot-cvs
mailing list