[Dovecot] using OR in doveadm search query

W. de Hoog wdehoog at exalondelft.nl
Mon Jan 6 23:04:33 EET 2014


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


More information about the dovecot mailing list