aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_draftstore.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 17:58:07 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 17:58:07 +0200
commitc4a38a5871250b9c952f3eb633ab4cf2ed3d717a (patch)
treee3871be69d4688bbc4143bbcbf47930836aa5379 /tests/test_draftstore.cpp
parent1e63b9127a34d0f3d396d5c4ad420074a04f5a55 (diff)
downloadqtmaildir-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 'tests/test_draftstore.cpp')
0 files changed, 0 insertions, 0 deletions