From b71db736d1cdc93a2d0b1d477ab8572c1187799e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 11 Jul 2026 03:59:33 +0530 Subject: feat(neomutt): add keybindings, sidebar colors, mailcap, and urlscan integration - Remap sidebar-open from Ctrl+O to 'o' for single-key access - Add Enter/l/h/0/$ keybindings across index, pager, and browser modes - Add macros: O (mbsync sync), gx (urlscan link extraction), gl (flag legend) - Add extraConfig with abort_key, mailcap_path, and auto_view for attachments - Add mailcap for w3m/html, image/pdf/video/audio openers via xdg-open - Add flag_legend.txt help file accessible via 'gl' - Add home.packages for urlscan and w3m - Add checkStatsInterval = 20 - Add sidebar colors (background, divider, ordinary, new, flagged, spool_file, highlight, indicator) - Add prompt, progress, stripe_odd/stripe_even, and attach_headers colors - Add index_collapsed, index_label, index_tag, and index_tags color targets - Fix indicator to use brightblack background instead of blue for better contrast - Extend quoted colors from 4 to 9 levels for deeply nested replies - Change Date header color to green - Update index_format with padding for cleaner alignment - Add mailboxes, Expunge = Both, and notmuch virtual mailboxes to email example --- modules/private/email.example.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'modules/private/email.example.nix') diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index 2f48b90..9fc9ee2 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -12,6 +12,9 @@ neomutt = { enable = true; mailboxType = "maildir"; + extraConfig = '' + mailboxes =Inbox ="[Gmail]/Drafts" ="[Gmail]/Sent Mail" ="[Gmail]/Trash" + ''; }; folders = { @@ -34,10 +37,19 @@ SyncState = "*"; Sync = "All"; CopyArrivalDate = "yes"; + Expunge = "Both"; }; }; - notmuch.enable = true; + notmuch = { + enable = true; + neomutt.virtualMailboxes = [ + { + name = "All Mail"; + query = "folder:example/Inbox or folder:\"example/[Gmail]/Sent Mail\""; + } + ]; + }; }; }; } -- cgit v1.2.3