<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">On 12 Oct 2022, at 18:22, Glenn Parker wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #5855D5; color: #5855D5;">
<p dir="auto">There is some documentation buried in the builtin help under the “Hidden Preferences” section. If you search for “format string” in that section, under “Other”, and follow the link, you’ll get this (and only this):</p>
</blockquote>
<p dir="auto">Yes, I had also found that earlier. Unfortunately, it lacks a bit of explanation.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #5855D5; color: #5855D5;">
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; border: thin solid gray; overflow-x: auto; max-width: 90vw; background-color: #F7F7F7;"><code style="padding: 0 0.25em; background-color: #F7F7F7;">Format String Syntax
${«var»:?«if»:«else»}
${«var»:+«if»}
${«var»:-«else»}
${«var»:«else»}
${«var»/«regexp»/«format»/«options»}
${«var»:[/upcase][/downcase][/capitalize][/asciify]}
</code></pre>
</blockquote>
<p dir="auto">In my special case, I have several lists with a header like:</p>
<p dir="auto"><code style="padding: 0 0.25em; background-color: #F7F7F7;">List-ID: NixOS Discourse | Development Moderation <moderation.development.discourse.nixos.org></code></p>
<p dir="auto">and subject with double blobs like:</p>
<p dir="auto"><code style="padding: 0 0.25em; background-color: #F7F7F7;">[NixOS Discourse][Development] Anyone up for picking at some Nix ~onboarding improvements?</code></p>
<p dir="auto">Do you see a way to pick up the 2nd blob? At this moment I get 15 smart subfolder with "NixOS Discourse". I see two options to resolve this:</p>
<ul>
<li>auto-generated names like "NixOS Discourse – Development" or "NixOS Development" (which I would prefer)</li>
<li>all mails go to "NixOS Discourse", regardles of their sub-blob</li>
</ul>
<p dir="auto">Any ideas?</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #5855D5; color: #5855D5;">
<p dir="auto">Breaking down your original format string, I get this:</p>
</blockquote>
<p dir="auto">Wow, thank you for this. :)</p>
<p dir="auto">PS and advertising: Nix is a packet manager on steroids, which runs on nearly every Linux distribution, macOS and Windows/WSL and BSD. One of the outstanding features is, that there is no dependency-hell by design. And with ca. 80000 packets nixpkgs is by far the biggest repository of all. If one has problems with homebrew, give Nix a shot. :)</p>
<p dir="auto">--<br>
Best Regards<br>
Mike</p>
</div>
</div>
</body>
</html>