aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 03:59:33 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-11 03:59:33 +0530
commitb71db736d1cdc93a2d0b1d477ab8572c1187799e (patch)
treeb36bc6c451b1edd356203bd0001c54fbba86e677 /modules/private/email.example.nix
parenta9fdb6d4358c8d34da52d13a960aa36182b65474 (diff)
downloadhome-manager-config-b71db736d1cdc93a2d0b1d477ab8572c1187799e.tar.gz
home-manager-config-b71db736d1cdc93a2d0b1d477ab8572c1187799e.zip
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
Diffstat (limited to 'modules/private/email.example.nix')
-rw-r--r--modules/private/email.example.nix14
1 files changed, 13 insertions, 1 deletions
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\"";
+ }
+ ];
+ };
};
};
}