<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
<style>
div.markdown { white-space: normal; }
div.plaintext { white-space: normal; }
body { font-family: sans-serif; }
h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }
h3 { font-size: 1.1em; }
blockquote { margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777; }
blockquote blockquote { border-left-color: #999999; color: #999999; }
blockquote blockquote blockquote { border-left-color: #BBBBBB; color: #BBBBBB; }
blockquote a { color: #777777; }
blockquote blockquote a { color: #999999; }
blockquote blockquote blockquote a { color: #BBBBBB; }
code { margin: 0; padding: 0 0.4em; border-radius: 3px; background-color: #F7F7F7; }
pre > code { padding: 0px; }
math[display="inline"] > mrow { padding:5px; }
div.footnotes li p { margin: 0.2em 0; }
p { margin: 1em 0px; }
</style>
</head>
<body>
<div class="markdown">
<p dir="auto">On 6 Jan 2017, at 13:58, Robert Brenstein wrote:</p>

<p dir="auto"></div>
<div class="plaintext"><blockquote><p dir="auto">I’d like the smart mailbox “flagged” to show a submailbox for each flag. Ideally, I’d like to see simply the flag icon as the submailbox name.<br>
<br>
I got as far as<br>
<br>
sub mailbox for each unique value of: flags<br>
mailbox name format: ${#flags.flag.#name}</p>
</blockquote></div>
<div class="markdown"></p>

<p dir="auto">For historic reasons, the name <code>#flags</code> is misleading. It's actually all IMAP keywords which includes both the keywords used for tags and other other standard or non-standard keywords.</p>

<p dir="auto"></div>
<div class="plaintext"><blockquote><p dir="auto">This shows the correct submailboxes but the shown names include all tags and flags not just the mailflags. The odd part is that the list of tags in the names does not always include $MailFlagBitX and sometimes includes more than one.</p>
</blockquote></div>
<div class="markdown"></p>

<p dir="auto">You are seeing a mailbox for every IMAP keywords which exists for any message which also has the <code>\Flagged</code> keyword.</p>

<p dir="auto"></div>
<div class="plaintext"><blockquote><p dir="auto">Note that the default name format is suggested as: ${#flags}<br>
This produces essentially the same submailbox names, just the order of listed tags is different.</p>
</blockquote></div>
<div class="markdown"></p>

<p dir="auto">Yes, you'll see all existing combinations of keywords.</p>

<p dir="auto">But to answer your question: There is currently no way to do what you request. Colored flags are a combination of IMAP keywords (this originates from Apple Mail). The best workaround is probably to manually create a smart mailbox for each combination of the mail bit flags. That'll also allow you to control the exact naming of the mailboxes. (Low-level I think it would also be possible to specify the flag images for the mailbox icons.)</p>

<p dir="auto">-- <br>
Benny</p>
</div>

</body>
</html>