From 5453d81c88fa9696de74fc8af09d1b75a9f7c8c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 10 Jul 2026 15:27:34 +0530 Subject: chore: updated the private email.examle.nix for gmail --- modules/private/email.example.nix | 10 +++++++--- modules/programs/neomutt/default.nix | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix index 2347489..d816b32 100644 --- a/modules/private/email.example.nix +++ b/modules/private/email.example.nix @@ -11,19 +11,23 @@ primary = true; neomutt.enable = true; + neomutt.extraConfig = '' + mailboxes "+Inbox" "+[Gmail]/Drafts" "+[Gmail]/Spam" "+[Gmail]/Trash" + ''; + mbsync = { enable = true; create = "maildir"; patterns = [ - "INBOX" - "\"[Gmail]/All Mail\"" - "\"[Gmail]/Sent Mail\"" + "Inbox" "\"[Gmail]/Drafts\"" "\"[Gmail]/Spam\"" "\"[Gmail]/Trash\"" ]; extraConfig.channel = { SyncState = "*"; + Sync = "All"; + CopyArrivalDate = "yes"; }; }; diff --git a/modules/programs/neomutt/default.nix b/modules/programs/neomutt/default.nix index ef57761..940ce9a 100644 --- a/modules/programs/neomutt/default.nix +++ b/modules/programs/neomutt/default.nix @@ -16,6 +16,7 @@ sidebar.enable = true; sort = "reverse-threads"; vimKeys = true; + unmailboxes = true; binds = [ { map = [ -- cgit v1.2.3