From: Timo Sirainen Date: Tue, 30 May 2017 21:00:32 +0000 (+0300) Subject: imapc: SEARCH - Don't add parenthesis around OR X-Git-Tag: 2.3.0.rc1~1535 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb9a2c8e20dbeb702614487f33d4df12280eadf5;p=thirdparty%2Fdovecot%2Fcore.git imapc: SEARCH - Don't add parenthesis around OR There's no need to write "(OR a b)" when "OR a b" works just the same. --- diff --git a/src/lib-storage/index/imapc/imapc-search.c b/src/lib-storage/index/imapc/imapc-search.c index 05c16c7b57..15905191bf 100644 --- a/src/lib-storage/index/imapc/imapc-search.c +++ b/src/lib-storage/index/imapc/imapc-search.c @@ -75,9 +75,7 @@ imapc_build_search_query_arg(struct imapc_mailbox *mbox, switch (arg->type) { case SEARCH_OR: - str_append_c(str, '('); imapc_build_search_query_args(mbox, arg->value.subargs, TRUE, str); - str_append_c(str, ')'); return TRUE; case SEARCH_SUB: str_append_c(str, '(');