On 6 Jun 2017, at 15:19, Benny Kjær Nielsen wrote:

On 1 Jun 2017, at 8:01, Max Rydahl Andersen wrote:

By using mailbox name format `${subject.body/.*?:(.*?)@.*/$1/}` I can get to this:

...

I'm wondering if a "group by unique name" or something similar could be possible under sub mailboxes ?

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 [this thread](https://lists.freron.com/mailmate/2014-March/002229.html).

ha! that actually works.

one question - for now it seems I'm forced to edit the bundled specifiers.plist to add specifiers to i.e. "subject.body" ?

i.e. I can't just add this to `~/Library/Application Support/MailMate/Resources/specifers.plist`:

```
invites = {
        headers = "subject.body";
        specifierRegex = '(.*?):(.*?)@(.*)';
        specifierCaptures = {
            1 = { specifier = "invite-action"; };
            2 = { specifier = "invite-title"; };
            3 = { specifier = "invite-time"; };
        };
       };
```

I have to add this to the bundled: `/Applications/MailMate.app/Contents/Frameworks/OakMIME.framework/Versions/A/Resources/specifers.plist`

```
        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"; };
        };
       };
```

notice the `parsers` now have "invites".

/max
http://about.me/maxandersen
_______________________________________________
mailmate mailing list
[email protected]
https://lists.freron.com/listinfo/mailmate

Reply via email to