[MlMt] selector syntax question

Benny Kjær Nielsen mailinglist at freron.com
Tue Mar 25 16:51:45 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20140325/96138cd4/attachment.html>


More information about the mailmate mailing list