[Dovecot] using OR in doveadm search query
Hi,
I am trying to create an OR query but no success yet:
$ doveadm search mailbox shared/* OR SUBJECT "a" SUBJECT "b" doveadm(neil): Fatal: Use parenthesis when mixing ANDs and ORs
$ doveadm search mailbox shared/* OR \(SUBJECT "a"\) \(SUBJECT "b"\) doveadm(neil): Fatal: Unknown argument (SUBJECT
$ doveadm search mailbox shared/* \(OR \(SUBJECT "a"\) \(SUBJECT "b"\)\) doveadm(neil): Fatal: Unknown argument (OR
What is the correct syntax for such a query?
-- Willem-Jan de Hoog
Quoting "W. de Hoog" wdehoog@exalondelft.nl:
Hi,
I am trying to create an OR query but no success yet:
$ doveadm search mailbox shared/* OR SUBJECT "a" SUBJECT "b" doveadm(neil): Fatal: Use parenthesis when mixing ANDs and ORs
$ doveadm search mailbox shared/* OR \(SUBJECT "a"\) \(SUBJECT "b"\) doveadm(neil): Fatal: Unknown argument (SUBJECT
This works for me (at least with tcsh):
$ doveadm search mailbox "shared/* OR (SUBJECT a) (SUBJECT b)"
michael
This works for me (at least with tcsh):
$ doveadm search mailbox "shared/* OR (SUBJECT a) (SUBJECT b)" doveadm does not complain anymore but it does not find anything. I guess because now the query has become a mailbox name that does not exist. ( I am using dovecot 2.2.9)
-- Willem-Jan de Hoog
participants (2)
-
Michael M Slusarz
-
W. de Hoog