<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 5 Jun 2018, at 09.39, Randall Gellens wrote:</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">I've tried to get the syntax right, but it doesn't work for me. As a test, I created a rule in the global Drafts mailbox that checks if any address contains either of the first two addresses I know are no longer good, and if so, plays a sound (since the mailbox rule facility doesn't have an action to display a message). That works. I tried to find the file that has this rule in it so I can copy the syntax, but I can't find it. I've used grep and other search tools to find all files under ~/Library/Application Support/MailMate that ends in .plist and has the first known bad address in it, but the only file that shows up is the messageVerifications.plist I'm trying to get right.</p>
</blockquote>
<p dir="auto">I would expect it to be in the Mailboxes.plist (that’s where the definitions of smart folders appear for me). From a quick glance at mine, the field to look at for the condition syntax is labelled 'filter' in there -- this corresponds to the 'Conditions' tab in the smart mailbox editor.</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">Here's the syntax I'm using:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">{
verifications = (
{
title = "Sending to Bad Address";
details = "Looks like this message has a known-bad address as one of the recipients. Are you sure you want to send it?";
conditions = {
compound = "Any";
condition = "#recipient.address = 'address1@example1'";
condition = "#recipient.address = 'address2@example2'";
}
}
);
}
</code></pre>
</blockquote>
<p dir="auto">Comparing that with my messageVerifications.plist file (which is working for me!) and the example in the MailMate manual, I think what you have for ‘conditions’ might be too complex… I think it is just supposed to be a single string, rather than a nested structure, so to represent the two conditions in your case I think you’d have to put something like:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">conditions = "(#recipient.address = 'address1@example1' or #recipient.address = 'address2@example2')";
</code></pre>
<p dir="auto">David</p>
</div>
</div>
</body>
</html>