[MlMt] Extract parts from strings for smart mailbox?

Oliver Sturm oliver at oliversturm.com
Mon Jan 27 05:12:29 EST 2025


Hi Benny,

>> These notification emails all show the name of the repository they apply to as part of the To header, e.g. `sveltejs/kit <kit at noreply.github.com>` would be the repository `sveltejs/kit`.
>
> 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.

Perhaps there’s something in this approach that could be used to actually make it happen?

Thanks
Oli

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20250127/69461124/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2412 bytes
Desc: S/MIME digital signature
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20250127/69461124/attachment.bin>


More information about the mailmate mailing list