On 25 Mar 2014, at 18:23, Kee Hinckley wrote:
Is there a way in the selection syntax to have an `'or'`? I'd like to
have multiple or'd options after the `'and'`, or at least be able have
`'from.domain'` match one or more other domain names (e.g.
`'from.domain IN'`).
```c
select = "content-type.type = text and content-type.subtype = html
and from.domain = 'tivo.com'"; // or #flags.flag =[x] 'HTMLReply'";
```
You can use and/or as you would probably expect (using parenthesis):
(x = 'a' and x = 'b') or (y = 'c' and y = 'd')
There is no “in” operator for a fixed set of values.
The only way to discover this syntax is to create the desired expression
using a smart mailbox and then look at the result in the
`Mailboxes.plist` file. Note that holding down ⌥ in the conditions
editor allows you to make the or/and (any/all) constructions.
--
Benny
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate