<!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">Hi,</p>

<p dir="auto">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.</p>

<p dir="auto">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.</p>

<p dir="auto">As an example, I’m using this Mailbox name format:</p>

<p dir="auto"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">${subject.body/\[(.*?)\].*/$1/}</code></p>

<p dir="auto">All mails where the subject starts with <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">[Bug Reports]</code> should appear in the <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Bug Reports</code> submailbox. Instead, one <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">Bug Reports</code> submailbox is created for each mail.</p>

<p dir="auto">Is there a way to create unique submailboxes based on regular expressions?</p>

<p dir="auto">Kind regards<br>
— Florian</p>

<p dir="auto">[1] <a href="https://manual.mailmate-app.com/format_string_syntax" style="color:#3983C4">https://manual.mailmate-app.com/format_string_syntax</a></p>
</div>
</div>
</body>
</html>