diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-29 17:58:07 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-29 17:58:07 +0200 |
| commit | c4a38a5871250b9c952f3eb633ab4cf2ed3d717a (patch) | |
| tree | e3871be69d4688bbc4143bbcbf47930836aa5379 /src/cardlayout.cpp | |
| parent | 1e63b9127a34d0f3d396d5c4ad420074a04f5a55 (diff) | |
| download | qtmaildir-c4a38a5871250b9c952f3eb633ab4cf2ed3d717a.tar.gz qtmaildir-c4a38a5871250b9c952f3eb633ab4cf2ed3d717a.zip | |
fix: accept a bracketed Message-ID in the message selector
A Message-ID is written <local@domain> in every header a caller copies it
from, and notmuch stores it without the angle brackets, so
`--message '<abc@example.org>'`, the form the README itself shows, matched
nothing and was reported as a miss. applySelectors() now trims the value
and strips one enclosing pair of brackets before anything else sees it, so
the worker's resolve and the recovery's selection target both use the bare
id. Stripping for the resolve alone would open the right thread and then
fail to select the message inside it, which is why the test targets a reply
rather than a thread root.
No refusal of a slashed id was added: notmuch 0.39 reads `/.../` as a regex
for mid: but not for id:, measured as 0 matches for id:"/.*/" on an index
where mid:"/.*/" matches every message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/cardlayout.cpp')
0 files changed, 0 insertions, 0 deletions
