<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Possible to make "exact phrase" email searches work?]]></title><description><![CDATA[<p dir="auto">At present searching for an exact phrase (e.g. wrapping words in quotes in Roundcube or SnappyMail) doesn't actually return only messages where those words appear together and in order. Instead it seems to return any message containing all the individual words, regardless of order or adjacency.</p>
<p dir="auto">Digging into this with Claude, it seems this comes down to how <code>fts_solr</code> builds its query. IMAP's base <code>SEARCH</code> command requires strict substring matching for <code>TEXT</code>/<code>BODY</code> searches, i.e. word order and adjacency should matter - this is specified in <a href="https://www.rfc-editor.org/info/rfc9051/" target="_blank" rel="noopener noreferrer nofollow ugc">RFC 9051</a>.</p>
<p dir="auto">There's a separate <code>FUZZY</code> extension (<a href="https://www.rfc-editor.org/info/rfc6203/" target="_blank" rel="noopener noreferrer nofollow ugc">RFC 6203</a>) specifically for inexact, stemmed, token-based matching, meant to be opt-in. <a href="https://www.rfc-editor.org/info/rfc7377/" target="_blank" rel="noopener noreferrer nofollow ugc">RFC 7377</a> makes the same point explicitly:</p>
<blockquote>
<p dir="auto">The base IMAP SEARCH command (Section 6.4.4. of [RFC3501]) requires strict substring matching in text searches. Many servers, however, use search engines that match strings in different ways... This is covered by the "Fuzzy Search" extension to IMAP [RFC6203]...</p>
</blockquote>
<p dir="auto">It looks like Dovecot's <code>fts_solr</code> currently searches the same way regardless of whether <code>FUZZY</code> was requested, essentially always doing the fuzzy/token-AND behaviour. There's an <a href="https://dovecot.org/list/dovecot/2015-September/102127.html" target="_blank" rel="noopener noreferrer nofollow ugc">old Dovecot mailing list thread</a> from a few years back where this exact same point was raised, with a proposed <code>fts_fuzzy_default</code> setting so non-fuzzy search would actually behave as the default, non-fuzzy per the spec, with <code>FUZZY</code> being needed to get the current AND-of-tokens behaviour.</p>
<p dir="auto">I appreciate this isn't a trivial one-line fix, especially since Cloudron's Solr schema uses edge n-grams for partial-word matching (which came up in <a href="https://forum.cloudron.io/topic/11643/searching-emails-by-email-address-doesn-t-work">the previous thread</a>), and phrase queries don't play nicely with n-gram-tokenized fields. It'd probably need a second, position-aware field for exact/phrase queries alongside the existing n-gram field. But given <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> is one of Dovecot's top contributors, I wondered whether this might be something worth raising upstream, since it'd presumably benefit every <code>fts_solr</code> user, not just Cloudron's setup.</p>
<p dir="auto">Happy to help test if you want to try anything.</p>
<p dir="auto">Thanks, Josef</p>
]]></description><link>https://forum.cloudron.io/topic/15685/possible-to-make-exact-phrase-email-searches-work</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 11:11:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15685.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Jul 2026 21:37:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Wed, 15 Jul 2026 17:17:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> good find.</p>
<p dir="auto"><a class="plugin-mentions-group plugin-mentions-a" href="/groups/staff" aria-label="Profile: staff">@<bdi>staff</bdi></a> please could we replace SnappyMail with this? Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/126797</link><guid isPermaLink="true">https://forum.cloudron.io/post/126797</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Wed, 15 Jul 2026 17:17:23 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Wed, 15 Jul 2026 06:31:13 GMT]]></title><description><![CDATA[<p dir="auto">I just looked at the discussion linked on Github, and it seems there's a working fork with updates: <a href="https://github.com/kimusan/Tachyon" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/kimusan/Tachyon</a></p>
]]></description><link>https://forum.cloudron.io/post/126788</link><guid isPermaLink="true">https://forum.cloudron.io/post/126788</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Wed, 15 Jul 2026 06:31:13 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Wed, 15 Jul 2026 06:16:13 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/timconsidine" aria-label="Profile: timconsidine">@<bdi>timconsidine</bdi></a> <a href="/post/126776">said</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a href="/post/126772">said</a>:</p>
<p dir="auto">(now dead) snappymail,</p>
</blockquote>
<p dir="auto">Snappymail still in AppStore and updated 4 months ago (FYI)</p>
</blockquote>
<p dir="auto">Snappymail itself - not the Cloudron package - hasn't been updated for almost two years. For a security-sensitive app like a mail client (still in many ways the "key to the kingdom"), I would strongly advise against using it.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Maybe it`s even time to delist it...</p>
]]></description><link>https://forum.cloudron.io/post/126787</link><guid isPermaLink="true">https://forum.cloudron.io/post/126787</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Wed, 15 Jul 2026 06:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Tue, 14 Jul 2026 19:41:23 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/necrevistonnezr" aria-label="Profile: necrevistonnezr">@<bdi>necrevistonnezr</bdi></a> <a href="/post/126775">said</a>:</p>
<p dir="auto">Is any self hosted mail client?! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title="🙂" alt="🙂" /></p>
</blockquote>
<p dir="auto">Same question.</p>
<p dir="auto">TBH they aren't too bad, but I needed to find something the other day and really wanted the "exact phrase" to work.</p>
<p dir="auto">But it sounds like it's actually nothing to do with the clients themselves (and nothing they could really do about it) but actually how IMAP and dovecot work (which yes, I misremembered for Haraka)</p>
]]></description><link>https://forum.cloudron.io/post/126780</link><guid isPermaLink="true">https://forum.cloudron.io/post/126780</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Tue, 14 Jul 2026 19:41:23 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Tue, 14 Jul 2026 17:35:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/timconsidine" aria-label="Profile: timconsidine">@<bdi>timconsidine</bdi></a> there's a big discussion here - <a href="https://github.com/the-djmaze/snappymail/issues/1911" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/the-djmaze/snappymail/issues/1911</a></p>
]]></description><link>https://forum.cloudron.io/post/126777</link><guid isPermaLink="true">https://forum.cloudron.io/post/126777</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 14 Jul 2026 17:35:13 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Tue, 14 Jul 2026 17:25:09 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a href="/post/126772">said</a>:</p>
<p dir="auto">(now dead) snappymail,</p>
</blockquote>
<p dir="auto">Snappymail still in AppStore and updated 4 months ago (FYI)</p>
]]></description><link>https://forum.cloudron.io/post/126776</link><guid isPermaLink="true">https://forum.cloudron.io/post/126776</guid><dc:creator><![CDATA[timconsidine]]></dc:creator><pubDate>Tue, 14 Jul 2026 17:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Tue, 14 Jul 2026 17:14:01 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> <a href="/post/126772">said</a>:</p>
<p dir="auto">I will have to investigate the exact issue though. Unfortunately, both roundcube and (now dead) snappymail, are both not great at searching .</p>
</blockquote>
<p dir="auto">Is any self hosted mail client?! <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/126775</link><guid isPermaLink="true">https://forum.cloudron.io/post/126775</guid><dc:creator><![CDATA[necrevistonnezr]]></dc:creator><pubDate>Tue, 14 Jul 2026 17:14:01 GMT</pubDate></item><item><title><![CDATA[Reply to Possible to make "exact phrase" email searches work? on Tue, 14 Jul 2026 15:18:07 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> <a href="/post/126488">said</a>:</p>
<p dir="auto">But given <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> is one of Dovecot's top contributors</p>
</blockquote>
<p dir="auto">Not sure where you learnt that <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=af5271e93de" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> but I haven't contributed a single change to Dovecot. May be you mistook my contributions to Haraka.</p>
<p dir="auto">I will have to investigate the exact issue though. Unfortunately, both roundcube and (now dead) snappymail, are both not great at searching .</p>
]]></description><link>https://forum.cloudron.io/post/126772</link><guid isPermaLink="true">https://forum.cloudron.io/post/126772</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 14 Jul 2026 15:18:07 GMT</pubDate></item></channel></rss>