<div class="markdown">
<p>On 11 Jan 2012, at 3:44, Seebs wrote:</p>
<blockquote>
<p>If a message comes to me with X-Spam-Flag: YES, I want to automatically move it to junk.</p>
<p>I can make a smart mailbox named Spam which holds all of these messages, but I can't seem to figure out an event that will do the same sort of thing. I tried setting up an account.synchronize which looks for things with #source.path = 'My Spam Box', but of course this doesn't work because that's not really the source.</p>
<p>I haven't yet found any documentation explaining what the options for filters are, so I don't know what I can or can't do; for instance, I don't know of a way to examine a header in a mmCommand.</p>
</blockquote>
<p>I know you figured out how to do this, but for the sake of “clarity” I have a few comments:</p>
<p>The <code>.mmCommand</code> files are currently the only way to make rules. It is still not certain that I won't change the format of these files. The only documentation is the comments in this file:</p>
<pre><code>MailMate.app/Contents/SharedSupport/Scripts/Strip\ MailMan\ Footer.mmCommand
</code></pre>
<p>(And I'm afraid those comments are not complete.)</p>
<p>The best way to figure out the <code>select</code> value is to setup a smart mailbox within MailMate and then look for the corresponding <code>filter</code> value in:</p>
<pre><code>~/Library/Application\ Support/MailMate/Mailboxes.plist
</code></pre>
<p>With respect to figuring out what is possible using the header specifiers (such as <code>from.address.domain</code>) then the following may be useful:</p>
<pre><code>MailMate.app/Contents/Frameworks/OakMIME.framework/Resources/specifiers.plist
</code></pre>
<hr>
<p>Benny</p>
</div>