[Dovecot] using OR in doveadm search query

Michael M Slusarz slusarz at curecanti.org
Mon Jan 6 23:21:43 EET 2014


Quoting "W. de Hoog" <wdehoog at 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



More information about the dovecot mailing list