<!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 6 Jun 2017, at 15:19, Benny Kjær Nielsen wrote:</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">On 1 Jun 2017, at 8:01, Max Rydahl Andersen wrote:</p>
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999">
<p dir="auto">By using mailbox name format <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">${subject.body/.*?:(.*?)@.*/$1/}</code> I can get to this:</p>
<p dir="auto">...</p>
<p dir="auto">I'm wondering if a "group by unique name" or something similar could be possible under sub mailboxes ?</p>
</blockquote>
<p dir="auto">For this to work, you need a custom specifier which parses the part of the subject line you need. That'll make it available in all parts of MailMate (including conditions and rules). I believe something similar has been done in the past. For example, read through <a href="https://lists.freron.com/mailmate/2014-March/002229.html" style="color:#777">this thread</a>.</p>
</blockquote>
<p dir="auto">ha! that actually works.</p>
<p dir="auto">one question - for now it seems I'm forced to edit the bundled specifiers.plist to add specifiers to i.e. "subject.body" ? </p>
<p dir="auto">i.e. I can't just add this to <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">~/Library/Application Support/MailMate/Resources/specifers.plist</code>:</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">invites = {
headers = "subject.body";
specifierRegex = '(.*?):(.*?)@(.*)';
specifierCaptures = {
1 = { specifier = "invite-action"; };
2 = { specifier = "invite-title"; };
3 = { specifier = "invite-time"; };
};
};
</code></pre>
<p dir="auto">I have to add this to the bundled: <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">/Applications/MailMate.app/Contents/Frameworks/OakMIME.framework/Versions/A/Resources/specifers.plist</code></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"> subject = {
[...]
specifierCaptures = {
[...]
4 = { specifier = "body"; type="noTabs"; parsers = ( "words", "invites" ); };
[...]
};
[...]
invites = {
specifierRegex = '(.*?):(.*?)@(.*)';
specifierCaptures = {
1 = { specifier = "invite-action"; };
2 = { specifier = "invite-title"; };
3 = { specifier = "invite-time"; };
};
};
</code></pre>
<p dir="auto">notice the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">parsers</code> now have "invites".</p>
<p dir="auto">/max<br>
<a href="http://about.me/maxandersen" style="color:#3983C4">http://about.me/maxandersen</a></p>
</div>
</div>
</body>
</html>