aboutsummaryrefslogtreecommitdiffstats
path: root/src/messagebuilder.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 17:14:21 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 17:14:21 +0200
commit3524c2eb1267baf44301ea888abc784ecf85e76a (patch)
tree28cb95387a1426c1d2fe5feec765378376b774ef /src/messagebuilder.h
parent0402b5b683c7412daace2414f4b903b677b5405c (diff)
downloadqtmaildir-3524c2eb1267baf44301ea888abc784ecf85e76a.tar.gz
qtmaildir-3524c2eb1267baf44301ea888abc784ecf85e76a.zip
feat: apply the launch selectors to the window
One entry point, called both at startup and by the socket handler when a later launch arrives. Two paths would drift, which is the lesson this file has already learned from every other pair. The account moves first, because a built-in filter composes with the dropdown and a query run before it would carry the old scope. The thread case reuses recoverStaleThread() whole, as item 91's double-click already does. A message id resolves to its thread first through the worker: opening a message means opening its conversation with that message selected. A thread id must be hex or it is treated as a miss and never reaches notmuch. recoverStaleThread() builds thread:<id> unquoted, which is safe for ids notmuch handed out and not for ones from another program's command line, where "0000 or tag:inbox" would widen the query to the whole inbox. The check uses anchoredPattern() because a PCRE $ also matches before a trailing newline. An empty selector set changes nothing. A bare launch against a running window means raise yourself, and a raise is not a navigation. Also drops an empty public: label left in notmuchworker.h by the previous commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/messagebuilder.h')
0 files changed, 0 insertions, 0 deletions