[MlMt] Extract parts from strings for smart mailbox?
Benny Kjær Nielsen
mailinglist at freron.com
Wed Jan 29 09:24:13 EST 2025
On 27 Jan 2025, at 11:12, Oliver Sturm via mailmate wrote:
>> There's currently no way to have 2 levels of submailboxes. I'm a big
>> fan of general features, but in this case I failed :)
>
> Okay… I’m surprised.
:)
> I was expecting you to say something like, yes, you can totally do
> that by simply creating a regex with multiple capturing groups. For
> instance, `(?<owner>[^\s/]+)/(?<repo>[^\s<]+)` will grab two named
> capturing groups which can then be used in the naming field for the
> mailbox like `${regex.owner}/${regex.repo}` to create sub-mailboxes.
Well, low level you can define specifiers which would make the
owner/repo values available (everywhere in MailMate) including for
making submailboxes. The missing part is that the “Submailboxes”
feature itself can only handle 1 level (well 2 if you count the
separation into different accounts (like default Sent Messages) mailbox.
This is not going to improve without a complete rewrite of the related
code. When/if that happens I've noted that it would be nice if multiple
levels also works.
--
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20250129/22e456f6/attachment.htm>
More information about the mailmate
mailing list