From ede4102e94519a1e5789caac24d3aba0dbea9da7 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Thu, 25 Sep 2025 23:41:37 -0500 Subject: [PATCH] home/neomutt | support for snoozing email --- home/common/files/mbsyncrc | 85 +++++++++++++++++++++++++++++ home/common/files/neomutt/neomuttrc | 7 +++ home/common/mail.nix | 17 ++++-- 3 files changed, 103 insertions(+), 6 deletions(-) create mode 100644 home/common/files/mbsyncrc diff --git a/home/common/files/mbsyncrc b/home/common/files/mbsyncrc new file mode 100644 index 0000000..a5ae82e --- /dev/null +++ b/home/common/files/mbsyncrc @@ -0,0 +1,85 @@ +IMAPAccount gmail +Host imap.gmail.com +User duckunix@gmail.com +Pass ezygrcpqakcfzogk +TLSType IMAPS +AuthMechs LOGIN +CertificateFile /etc/ssl/certs/ca-certificates.crt +PipelineDepth 50 + +IMAPStore remote +Account gmail + +MaildirStore local +Subfolders Verbatim +Path ~/Mail/ +Inbox ~/Mail/Inbox +Subfolders Verbatim + +Channel gmail-all +Far :remote: +Near :local: +Patterns development Followup job kisd SMS uh snooze snooze/* +Create Both +SyncState * +Expunge Both + +Channel Sent-Mail +Far :remote:"[Gmail]/Sent Mail" +Near :local:Sent-Mail +Expunge Both + +Channel Trash +Far :remote:"[Gmail]/Trash" +Near :local:Trash +Expunge Both + +Channel Drafts +Far :remote:"[Gmail]/Drafts" +Near :local:Drafts +Expunge Both + +Channel All-Mail +Far :remote:"[Gmail]/All Mail" +Near :local:All-Mail +Expunge Both + + +Channel INBOX +Far :remote:INBOX +Near :local:INBOX +Expunge Both + +Channel mailing-lists +Far :remote:"mailing lists" +Near :local:mailing-lists +Expunge Both + +Channel development +Far :remote:development +Near :local:development +Expunge Both + +Channel news +Far :remote:news +Near :local:news +Expunge Both + +Channel SPAM +Far :remote:"[Gmail]/Spam" +Near :local:SPAM +Expunge Both + +Group gmail +Channel gmail-all +Channel Sent-Mail +Channel Trash +Channel Drafts +Channel All-Mail +Channel SPAM + +Group gmail-fast +Channel INBOX +Channel news +Channel mailing-lists +Channel development diff --git a/home/common/files/neomutt/neomuttrc b/home/common/files/neomutt/neomuttrc index 1321899..bef7fae 100644 --- a/home/common/files/neomutt/neomuttrc +++ b/home/common/files/neomutt/neomuttrc @@ -42,6 +42,13 @@ macro index,pager S "=SPAM" "Spam it!" macro index,pager W mail2onenote macro index,pager w emailtask macro index,pager y "" "Archive" +macro index,pager "=snooze/1" +macro index,pager "=snooze/2" +macro index,pager "=snooze/3" +macro index,pager "=snooze/4" +macro index,pager "=snooze/5" +macro index,pager "=snooze/6" +macro index,pager "=snooze/7" macro pager B 'toggle sidebar_visible' macro pager l "ql" "Goto index and limit" macro pager o ":set pipe_decode\n|urlscan --run-safe myweb --pipe -c -d\n:unset pipe_decode\n" "call urlscan to extract URLs out of a message" diff --git a/home/common/mail.nix b/home/common/mail.nix index 442784f..930a8f3 100644 --- a/home/common/mail.nix +++ b/home/common/mail.nix @@ -1,4 +1,8 @@ -{ config, pkgs, ... }: { +{ + config, + pkgs, + ... +}: { accounts.email.accounts = { "don@donharper.org" = { primary = true; @@ -13,7 +17,7 @@ programs.notmuch = { enable = true; new = { - tags = [ "new" "unread" "inbox" ]; + tags = ["new" "unread" "inbox"]; ignore = [ ".mbsyncstate" ".uidvalidity" @@ -35,6 +39,7 @@ xdg.configFile."neomutt/neomuttrc".source = ./files/neomutt/neomuttrc; xdg.configFile."neomutt/mailcap".source = ./files/neomutt/mailcap; + home.file.".mbsyncrc".source = ./files/mbsyncrc; home.file.".signature".text = '' Don Harper ''; @@ -45,7 +50,7 @@ OnUnitActiveSec = "5m"; AccuracySec = "1m"; }; - Install = { WantedBy = [ "timers.target" ]; }; + Install = {WantedBy = ["timers.target"];}; }; services.mbsync = { @@ -54,7 +59,7 @@ Environment = "PATH=/run/current-system/sw/bin"; Type = "oneshot"; }; - Install = { WantedBy = [ "mbsync.timer" ]; }; + Install = {WantedBy = ["mbsync.timer"];}; }; services."mbsync-all" = { @@ -63,7 +68,7 @@ Environment = "PATH=/run/current-system/sw/bin"; Type = "oneshot"; }; - Install = { WantedBy = [ "mbsync-all.timer" ]; }; + Install = {WantedBy = ["mbsync-all.timer"];}; }; timers."mbsync-all" = { @@ -71,7 +76,7 @@ AccuracySec = "1m"; OnUnitActiveSec = "14m"; }; - Install = { WantedBy = [ "timers.target" ]; }; + Install = {WantedBy = ["timers.target"];}; }; }; }