aboutsummaryrefslogtreecommitdiffstats
path: root/src/rulequery.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-25 10:21:54 +0200
committerDanilo M. <danix@danix.xyz>2026-08-25 10:21:54 +0200
commitbfc5f78758f527f969204b61ad2317470a454e59 (patch)
treec6e1fccc21ac42d6614cb25ea257a617bb2dccad /src/rulequery.cpp
parent0dee84687f65cb200e46d2f612c9c94887a126eb (diff)
downloadqtmaildir-bfc5f78758f527f969204b61ad2317470a454e59.tar.gz
qtmaildir-bfc5f78758f527f969204b61ad2317470a454e59.zip
docs(backlog): correct item 164, the first cause was wrong
The entry blamed a missing drafts helper. Neither half of that was true. NOT_ARRIVALS in qtmaildirconf.py is ("sent", "drafts"), so sent_folders() already returns both; the function name says sent and its contents do not, which is what made the wrong reading plausible. Run against the real config it returns every account's drafts folder, and notmuch count over the carve-out query and the affected message id returns 1: the query the hook builds MATCHES the draft. The folder list and the query are correct and the fix is not there. A second theory is also recorded as dead. An mbsync-style rename does not re-apply new.tags: measured in a throwaway database, a file renamed to add ,U=4 and reindexed kept the tags it had. What is established: the carve-out is scoped to tag:new, the draft carries inbox, and tag:new is 0, so it was never in scope when the hook ran. The installed hooks are symlinks into this repository, verified rather than assumed, so the code read is the code that runs. What is not established is which pass tagged the file. The likely shape is an ordering one, since item 158 indexes a draft from the application itself and a file already known to the database is not new on the next pass, but that is a third hypothesis and the first two were both wrong. The entry now calls for a reproducer driving the real sequence before any code is written, since the hook tags real mail unattended every ten minutes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UUQS6n3cmsFrsjCNmwNtf8
Diffstat (limited to 'src/rulequery.cpp')
0 files changed, 0 insertions, 0 deletions