aboutsummaryrefslogtreecommitdiff
path: root/tests/test-mail-config--account-search-queries.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor(mail-config): build the account-nav keymaps from one templateCraig Jennings2026-06-201-0/+53
The cmail/dmail/gmail navigation maps were three near-identical defvar-keymap blocks differing only by maildir prefix, with the unread/flagged/large query clauses repeated in each. Add cj/--mail-account-search-queries (account -> the four search strings) and cj/--mail-make-account-map (builds the keymap), wrapped in eval-and-compile so org-msg's :preface can call the builder during byte-compilation. The three maps become one-line builder calls. Adds direct coverage of the query strings and the per-account closures.