diff --git a/home/common/files/neomutt/neomuttrc b/home/common/files/neomutt/neomuttrc index 5916352..11d0d54 100644 --- a/home/common/files/neomutt/neomuttrc +++ b/home/common/files/neomutt/neomuttrc @@ -12,15 +12,13 @@ bind attach,compose Q exit bind attach,pager i exit bind editor complete-query bind index sidebar-next -bind index sidebar-open -bind index sidebar-prev +bind index sidebar-open +bind index sidebar-prev bind index x sync-mailbox bind index,pager * flag-message bind index,pager / vfolder-from-query -bind index,pager change-vfolder bind index,pager R group-reply bind index,pager Y print-message -bind index,pager \et modify-tags bind index,pager c mail bind index,pager g change-folder bind index,pager n next-entry @@ -48,31 +46,48 @@ macro generic \em ":source ~/.config/neomutt/neomuttrc\n" "reload ~/.muttrc" macro index B 'toggle sidebar_visible' macro index \t "g\r" macro index i "g!\n" "Goto Inbox" -macro index,pager @ "-spam -new -unread +inbox" "Ham it!" macro index,pager A "khard add-email" "add the sender email address to khard" -macro index,pager N "-new -unread" macro index,pager Q ":set quit=yes\nq" "Quit mutt without asking" -macro index,pager S "+spam -new -unread -inbox=SPAM" "Spam it!" -macro index,pager d "-new -unread -inbox +deleted" macro index,pager w emailtask -macro index,pager y "+archive -new -unread -inbox" 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" macro pager x "ix" "exit pager and sync mailbox" -set nm_default_uri="notmuch:///home/don/Mail" # path to the maildir -set virtual_spoolfile=yes # enable virtual folders -virtual-mailboxes "Inbox" "notmuch://?query=tag:inbox and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "news" "notmuch://?query=tag:news and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "pen" "notmuch://?query=tag:pen and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "mailing-lists" "notmuch://?query=tag:mailing-lists and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "development" "notmuch://?query=tag:development and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "SPAM" "notmuch://?query=tag:SPAM and NOT tag:archive and NOT tag:deleted" -virtual-mailboxes "Unread" "notmuch://?query=tag:unread" -virtual-mailboxes "Starred" "notmuch://?query=tag:*" -virtual-mailboxes "Sent" "notmuch://?query=tag:sent" -sidebar_pin "Inbox" "news" "pen" "mailing-lists" "development" "SPAM" "Unread" "Starred" "Sent" -# =Followup +################################################################################ +# mdir config +macro index,pager @ "=Inbox" "Ham it!" +macro index,pager S "=SPAM" "Spam it!" +macro index,pager y "" "Archive" +mailboxes =Inbox =news =pen =mailing-lists =development =SPAM +set spoolfile=+Inbox +set trash="+Trash" +set index_format="%2C %Z %[%m/%d %l:%M %P] %-20.20F | %s" + +################################################################################ +# notmuch config +# macro index,pager @ "-spam -new -unread +inbox" "Ham it!" +# macro index,pager N "-new -unread" +# macro index,pager S "+spam -new -unread -inbox=SPAM" "Spam it!" +# macro index,pager y "+archive -new -unread -inbox" +# macro index,pager d "-new -unread -inbox +deleted" +# bind index,pager \et modify-tags +# bind index,pager change-vfolder +# set nm_default_uri="notmuch:///home/don/Mail" # path to the maildir +# set virtual_spoolfile=yes # enable virtual folders +# set spoolfile=Inbox +# virtual-mailboxes "Inbox" "notmuch://?query=tag:inbox and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "news" "notmuch://?query=tag:news and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "pen" "notmuch://?query=tag:pen and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "mailing-lists" "notmuch://?query=tag:mailing-lists and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "development" "notmuch://?query=tag:development and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "SPAM" "notmuch://?query=tag:SPAM and NOT tag:archive and NOT tag:deleted" +# virtual-mailboxes "Unread" "notmuch://?query=tag:unread" +# virtual-mailboxes "Starred" "notmuch://?query=tag:*" +# virtual-mailboxes "Sent" "notmuch://?query=tag:sent" +# sidebar_pin "Inbox" "news" "pen" "mailing-lists" "development" "SPAM" "Unread" "Starred" "Sent" +# set index_format="%2C %Z %[%m/%d %l:%M %P] %-20.20F (%g) | %s" +# ################################################################################ + reply-hook '~C don@donaldharper.com' 'my_hdr From: "Don Harper" ; my_hdr Reply-To: "Don Harper" ;set from="don@donaldharper.com"' reply-hook '~C don@donharper.org' 'my_hdr From: "Don Harper" ; my_hdr Reply-To: "Don Harper" ;set from="don@donharper.org"' reply-hook '~C donald.m.harper@gmail.com' 'my_hdr From: "Don Harper" ; my_hdr Reply-To: "Don Harper" ;set from="donald.m.harper@gmail.com"' @@ -116,7 +131,6 @@ set hidden_host set hostname="duckland.org" set implicit_autoview=yes set include=yes -set index_format="%2C %Z %[%m/%d %l:%M %P] %-20.20F (%g) | %s" set ispell="aspell -e -c" set mailcap_path=~/.config/neomutt/mailcap #set maildir_trash @@ -144,12 +158,10 @@ set sidebar_format = "%D %n %!" set sidebar_new_mail_only set sort=threads set sort_aux=last-date-sent -set spoolfile=Inbox set status_format="---Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Post:%p?%?b? Inc:%b? ]-%>-(%P)---" set status_on_top set timeout=10 set tmpdir="/var/tmp" -# set trash="+Trash" set use_envelope_from=yes set wrap=-10 set write_inc=25 diff --git a/home/common/files/notmuch/post-new b/home/common/files/notmuch/post-new index c04ce72..d6a40da 100755 --- a/home/common/files/notmuch/post-new +++ b/home/common/files/notmuch/post-new @@ -33,10 +33,13 @@ movetag() { } addtag aurora from "collegeboard@noreply.collegeboard.org" addtag kisd from "noreply@sportsyou.com bbstheatre@gmail.com do-not-reply@seesaw.me katyisd.org mail.remind.com no-reply@schoolnutritionandfitness.com noreply@mailer.sportsengine.com notifications@instructure.com webstores@revtrak.net" +addtag kisd List "100002107.xt.local" addtag uh from "donotreply@studentaid.gov hello@earnest.com hello@hello.earnest.com parents@uh.campusespmail.com reply@info.myfedloan.org uh.edu" movetag development from "github.com outgoing@sr.ht gohugo.io" -movetag mailing-lists from "substack.com qutebrowser.org nabucasa.com noreply@bandcamp.com tom@newsletter.tomscott.com info@repebble.com news@shop.kobo.com hello@determinate.systems james@jamespopsys.com info@zmp.techtarget.com newsletter@popey.com noreply@mail.selfh.st parker.higgins@tailscale.com hello@redecentralize.org noreply@selfh.st no-reply@drivethrurpg.com no-reply@hello.charlestyrwhitt.com marketing@gc2b.info newsletters@bookshop.org contact@kickstargogo.com email@em.myaccountaccess.com do-not-reply@thangs.com TurboTax@em1.turbotax.intuit.com cincoconnect@engage.goenumerate.com all3dp.com amazon.com aur.archlinux.org drivethrucomics.com e.crm.lego.com e.honeywellhome.com emac.usaa.com email.tripit.com email1.roku.com freebirdsworldburrito.com gnty.com h1.hilton.com ianworthphotography.co.uk linkedin.com mailer.netflix.com me.kickstarter.com meetup.com mp1.tripadvisor.com nathan@nathanlowell.com nature.com penzeys.com photoephemeris.com planetary.org promotions.sprouts.com redditmail.com sherwoodforestfaire.com thanx.com townsq.io travel2.hiltongrandvacations.com tripit.com ttias.be uh.campusespmail.com xpsship.com ymcahouston.org youtube.com" +movetag development List "59644032.naviterm.detoxify92.gitlab.com discourse.gohugo.io support.discourse.gohugo.io" +movetag mailing-lists from "keychron.com substack.com qutebrowser.org nabucasa.com noreply@bandcamp.com tom@newsletter.tomscott.com info@repebble.com news@shop.kobo.com hello@determinate.systems james@jamespopsys.com info@zmp.techtarget.com newsletter@popey.com noreply@mail.selfh.st parker.higgins@tailscale.com hello@redecentralize.org noreply@selfh.st no-reply@drivethrurpg.com no-reply@hello.charlestyrwhitt.com marketing@gc2b.info newsletters@bookshop.org contact@kickstargogo.com email@em.myaccountaccess.com do-not-reply@thangs.com TurboTax@em1.turbotax.intuit.com cincoconnect@engage.goenumerate.com all3dp.com amazon.com aur.archlinux.org drivethrucomics.com e.crm.lego.com e.honeywellhome.com emac.usaa.com email.tripit.com email1.roku.com freebirdsworldburrito.com gnty.com h1.hilton.com ianworthphotography.co.uk linkedin.com mailer.netflix.com me.kickstarter.com meetup.com mp1.tripadvisor.com nathan@nathanlowell.com nature.com penzeys.com photoephemeris.com planetary.org promotions.sprouts.com redditmail.com sherwoodforestfaire.com thanx.com townsq.io travel2.hiltongrandvacations.com tripit.com ttias.be uh.campusespmail.com xpsship.com ymcahouston.org youtube.com" movetag mailing-lists to "~rjarry/aerc-discuss@lists.sr.ht" +movetag mailing-lists List "019709108c5a5a76b2d015dd3d4db4262827bf3f.google.com 051b683089a9961268c16c3b8.186717.list-id.mcsv.net 100019430.xt.local 1021275.xt.local 4caf0a639e8acd8cf045f7bf9.972716.list-id.mcsv.net 50874e856d63dbc9da48f17f6.661209.list-id.mcsv.net 72a12beb88773f8d735b1ef60.728193.list-id.mcsv.net 78867590-91ca-400c-8788-54215beef097@mail.nabucasa.com a1d0492028bd019fd37c01eb6.77408.list-id.mcsv.net bc856e62a9254399365d0277b.444809.list-id.mcsv.net capone.1.0.sparkpostmail.com disneyplus.com docker.general.discourse.linuxserver.io e2bfda4c698819ae31aed58a4mc f452ec3bdbd6b3981f19e668amc micaelwidell.buttondown.email no-reply.ee111a3d.toast-restaurants.com.s1r1r-596yt.mj platformengineeringmonthly.substack.com qutebrowser.org" movetag pen from "spacecitypenclub@gmail.com goldspot.com gouletpens.com penaddict.com inkjournal.com penchalet.com store+14054876@t.shopifyemail.com jetpens.com fprevolutionusa.com penrealm.com fountainpennetwork.com" movetag news from "bbc.com theregister.co.uk email@washingtonpost.com email@nl.npr.org bbcnewsdaily@bbc.co.uk newsletters.cnn.com mailer.chron.com mailer.houstonchronicle.com" -# query:"list:(100002107.xt.local)" tag:[ "kisd" ] +movetag news List "281c839c990f42b374467ae5f.38179.list-id.mcsv.net 6424888.xt.local 7219534.xt.local NTg1OTQxNC00NzgtNA== a2e22d7f24f6d1e3464d05be4.330790.list-id.mcsv.net news.theregister.co.uk" diff --git a/home/common/mail.nix b/home/common/mail.nix index 6bb3c44..ff28d10 100644 --- a/home/common/mail.nix +++ b/home/common/mail.nix @@ -27,7 +27,7 @@ programs.notmuch = { enable = true; new = { - tags = ["new" "unread" "inbox"]; + tags = ["new" "unread"]; ignore = [ ".mbsyncstate" ".uidvalidity" @@ -36,8 +36,13 @@ ".mbsyncstate.lock" ]; }; - maildir.synchronizeFlags = true; + maildir = { + synchronizeFlags = true; + }; extraConfig = { + index = { + "header.List" = "List-Id"; + }; database = { path = "/home/don/Mail"; hook_dir = "/home/don/.config/notmuch/hooks";