I also found in my mail an x-msreally-to header, so I added that as well

These are changes to ``/Applications/MailMate.app/Contents/Frameworks/OakMIME.framework/Versions/A/Resources``. There may be a local place it can be stored, I tried ``~Library/Application Support/MailMate/Frameworks/OakMIME.framework/Versions/A/Resources`` and that didn't seem to work, but I may have screwed up part of that. I'll try again later.

I've attached the diff. There are two changes.

First to add a new shortcut that will show up in the selector menu.

                {
                        shorthand = "#really-to";
specifiers = ( "x-real-to", "envelope-to", "x-envelope-to", "x-msreally-to" );
                },


Secondly, to the definition of an address, to add the new group, and the new headers.

                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" );
        
That allows you to have a Submailboxes rule that looks like:

        Submailbox for each unique value of Really-To
        Mailbox name format: ${#really-to}

and picks up any of those values, instead of just one. Works like a charm.
--- /Users/nazgul/src/mailmate/specifiers.plist 2013-12-03 10:14:50.000000000 
-0500
+++ 
/Applications/MailMate.app/Contents/Frameworks/OakMIME.framework/Versions/A/Resources/specifiers.plist
      2013-12-03 10:32:40.000000000 -0500
@@ -25,6 +25,10 @@
                        shorthand = "#mailer";
                        specifiers = ( "x-mailer", "user-agent", "x-newsreader" 
);
                },
+               {
+                       shorthand = "#really-to";
+                       specifiers = ( "x-real-to", "envelope-to", 
"x-envelope-to", "x-msreally-to" );
+               },
                // {
                //      shorthand = "#spam-info";
                //      specifiers = ( "x-spam-status", "x-spam-score" );
@@ -121,7 +125,7 @@
                };
                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", "envelope-to", 
"x-envelope-to");
+                       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" );
                        // A regular expression capturing the name and the 
address part
                        // Due to the many styles used for this header 
(standard and non-standard),
                        // the regex is quite complicated.
_______________________________________________
mailmate mailing list
[email protected]
http://lists.freron.com/listinfo/mailmate

Reply via email to