<div class="markdown">
<p>I also found in my mail an x-msreally-to header, so I added that as well </p>
<p>These are changes to <code>/Applications/MailMate.app/Contents/Frameworks/OakMIME.framework/Versions/A/Resources</code>. There may be a local place it can be stored, I tried <code>~Library/Application Support/MailMate/Frameworks/OakMIME.framework/Versions/A/Resources</code> and that didn’t seem to work, but I may have screwed up part of that. I’ll try again later. </p>
<p>I’ve attached the diff. There are two changes. </p>
<p>First to add a new shortcut that will show up in the selector menu. </p>
<pre><code> {
shorthand = "#really-to";
specifiers = ( "x-real-to", "envelope-to", "x-envelope-to", "x-msreally-to" );
},
</code></pre>
<p>Secondly, to the definition of an address, to add the new group, and the new headers. </p>
<pre><code> address = {
// Note that both 'headers' and 'header' are supported as keywords (most often only 1 is specified)
headers = ( "from", "resent-from", "x-original-to", "delivered-to", "x-delivered-to", "#original-to", "#really-to", "x-real-to", "x-envelope-to", "envelope-to", "x-msreally-to" );
</code></pre>
<p>That allows you to have a Submailboxes rule that looks like: </p>
<pre><code>Submailbox for each unique value of Really-To
Mailbox name format: ${#really-to}
</code></pre>
<p>and picks up any of those values, instead of just one. Works like a charm. </p>
</div>