<!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">i also tried the regex and it result in submailbox for each mail :(</p>

<p dir="auto">i also don’t know how to solve it. i expected that all the same results are combined in sub mailboxes with the same result.</p>

<p dir="auto">but as a workaround i found a solution for subjects like <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">“[abc] subject line“</code> where you like to group by <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">[abc]</code></p>

<p dir="auto">this you can get when you set in<br>
[x] Submailbox for each unique value of: Subject > Blob</p>

<p dir="auto">Mailbox name format: ${subject.blob}</p>

<p dir="auto">i hope this workaround helps you without editing *.plist files</p>

<p dir="auto">On 9 Mar 2018, at 13:16, Florian Heidenreich wrote:</p>

</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Hi,<br>
<br>
I’m trying to create a smart mailbox with submailboxes for each result of a regular expression on the mail subject. I’m using a regexp format string [1] for the mailbox name format which works and produces the correct names.<br>
<br>
However, it seems not possible to make the submailboxes unique in the sense, that mails are grouped into one submailbox if the regexp produces the same result.<br>
<br>
As an example, I’m using this Mailbox name format:<br>
<br>
`${subject.body/\[(.*?)\].*/$1/}`<br>
<br>
All mails where the subject starts with `[Bug Reports]` should appear in the `Bug Reports` submailbox. Instead, one `Bug Reports` submailbox is created for each mail.<br>
<br>
Is there a way to create unique submailboxes based on regular expressions?<br>
<br>
Kind regards<br>
— Florian<br>
<br>
<br>
[1] <a href="https://manual.mailmate-app.com/format_string_syntax" style="color:#777">https://manual.mailmate-app.com/format_string_syntax</a><br>
_______________________________________________<br>
mailmate mailing list<br>
mailmate@lists.freron.com<br>
<a href="https://lists.freron.com/listinfo/mailmate" style="color:#777">https://lists.freron.com/listinfo/mailmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>