[MlMt] Extract parts from strings for smart mailbox?

Benny Kjær Nielsen mailinglist at freron.com
Sat Jan 25 10:47:19 EST 2025


On 13 Jan 2025, at 10:27, Oliver Sturm via mailmate wrote:

> 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`.
>
> However, in some cases the same organization (that’s the part before 
> the slash) has many repositories, and if the org name is also quite 
> long then I end up with a screenful of sub-folders which appear to 
> have all the same names unless I make the mailbox/folder bar in MM 
> super wide — and even then it’s not really a useful overview. 
> Obviously, if the name has a string formatted as `org/repo`, then it 
> would be great to extract the two parts and create nested sub folders 
> for both levels, not just one.
>
> Is there a way to do that?

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 :)

I'm not really sure what else you can do. If there are only a few 
organizations then you could create them manually and leave out the 
organization in the mailbox names. Or create smart mailboxes for the few 
large organizations manually and then have a different mailbox for the 
rest (which uses the None feature to exclude the ones already covered by 
the large ones).

-- 
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20250125/16b80bac/attachment.htm>


More information about the mailmate mailing list