[MlMt] Is there any documentation on operator syntax?

Benny Kjær Nielsen mailinglist at freron.com
Wed Dec 4 09:57:06 EST 2013


On 4 Dec 2013, at 15:09, Kee Hinckley wrote:

There is no documentation. Mostly because the query language was 
primarily intended for internal use in MailMate, but it “leaks” into 
some of the low level customizations.

> In particular, the difference between =[x] and =[c]? But anything 
> would be helpful!

It's two different things and actually there are 3:

* `c` for case sensitive.
* `x` for eXclusive
* `a` for all body parts

Exclusive (x) is used to say that the condition should be true for all 
values which is important for multi-value headers, in particular, for 
negated comparisons (!=).

> I'm trying to constructor a selector for messages that aren't from me. 
> The ``Personal Inbox`` example uses:
>
> 	filter = "#recipient.address = $SENT.from.address";

Yes, the translation is “one of the recipients of a message must be 
one of the senders in the universal Sent Messages mailbox”.

> for messages which *are* to me. Unread messages uses:
>
> 	filter = "#flags.flag !=[x] '\\Seen'";
>
> to exclude anything containing a tag.

Yes, the translation is “No flag/tag/keyword of the message is allowed 
to be Seen”. Without the `x` then it would be enough if just one 
flag/tag/keyword was not Seen.

> So I would guess that it should be something like:
>
> 	$SENT.from.address !=[x] from.address
>
> except that crashes MailMate, so I guess not! :)

MailMate does not like invalid queries :-) If I understand you correctly 
then you should have done like this:

	from.address !=[x] $SENT.from.address

The sender of the message must not be equivalent to any of the Sent 
Messages senders.

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20131204/95157357/attachment.html>


More information about the mailmate mailing list