<div class="markdown">
<p dir="auto">On 26 Apr 2015, at 16:23, Christian Hopps wrote:</p>

<blockquote>
<p dir="auto">I’m trying to use the “.” regular expression in my mailbox rules to filter spam that uses a symbol rather than the true spelling to sneak by normal spam filtering, but I don’t think this is supported by default. Is there a way to enable something like this?</p>
</blockquote>

<p dir="auto">No, there is no regexp-comparison method. The only workaround is to, low level, introduce a new specifier using the regular expression. For example, such that you could make a condition like “From ▸ Junk exists”.</p>

<p dir="auto">For example, save this as <code>~/Library/Application Support/MailMate/Resources/specifiers.plist</code>:</p>

<pre><code>{
    parsers = {
        junk = {
            headers = ( "from" );
            specifierRegex = '(mm-.*@freron\.com)';
            specifierCaptures = {
                1 = { specifier = "junk"; };
            };
        };
    };
}
</code></pre>

<p dir="auto">It's cumbersome and not very flexible, but an advantage is that it can be used everywhere (searches, rules, submailboxes, ...).</p>

<p dir="auto">-- <br>
Benny</p>

</div>