]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: SEARCH - Don't add parenthesis around OR
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 30 May 2017 21:00:32 +0000 (00:00 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Jun 2017 05:41:30 +0000 (08:41 +0300)
There's no need to write "(OR a b)" when "OR a b" works just the same.

src/lib-storage/index/imapc/imapc-search.c

index 05c16c7b5727afd22e94d9977b484eb717adc6d0..15905191bfcab0f632ebb1d064f82e84b6f802a8 100644 (file)
@@ -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, '(');