From ed293706d2e40a44328993f1b598c20e03ed8e02 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:51:09 -0500 Subject: mutt --- .mutt/accounts.rc | 197 -------------------------------------- .mutt/color.rc | 112 ---------------------- .mutt/gpg.rc | 11 --- .mutt/mailinglists.rc | 30 ------ .mutt/news.rc | 71 -------------- .mutt/score.rc | 24 ----- dot_mutt/color.rc | 112 ++++++++++++++++++++++ dot_mutt/gpg.rc | 11 +++ dot_mutt/mailinglists.rc | 30 ++++++ dot_mutt/news.rc | 71 ++++++++++++++ dot_mutt/private_accounts.rc.tmpl | 197 ++++++++++++++++++++++++++++++++++++++ dot_mutt/score.rc | 24 +++++ 12 files changed, 445 insertions(+), 445 deletions(-) delete mode 100644 .mutt/accounts.rc delete mode 100644 .mutt/color.rc delete mode 100644 .mutt/gpg.rc delete mode 100644 .mutt/mailinglists.rc delete mode 100644 .mutt/news.rc delete mode 100644 .mutt/score.rc create mode 100644 dot_mutt/color.rc create mode 100644 dot_mutt/gpg.rc create mode 100644 dot_mutt/mailinglists.rc create mode 100644 dot_mutt/news.rc create mode 100644 dot_mutt/private_accounts.rc.tmpl create mode 100644 dot_mutt/score.rc diff --git a/.mutt/accounts.rc b/.mutt/accounts.rc deleted file mode 100644 index 94da0bc..0000000 --- a/.mutt/accounts.rc +++ /dev/null @@ -1,197 +0,0 @@ -# vim: syntax=muttrc - -account-hook imaps://ryanakca@gmail.com@imap.gmail.com \ -"set imap_user = 'ryanakca@gmail.com';\ -set imap_pass = 'GMAIL_PASS';\ -set imap_passive = 'no';\ -set folder = 'imaps://ryanakca@gmail.com@imap.gmail.com';\ -set postponed = '=[Google Mail]/Drafts';\ -set spoolfile = '=INBOX';\ -set from = 'Ryan Kavanagh ';\ -set sendmail = 'sendmail -oem -oi';\ -set record = '=[Google Mail]/Sent Mail';\ -set copy = 'no';\ -unset smtp_url;\ -unset smtp_pass;\ -unset mbox;\ -source "~/.mutt/savehooks.rc";\ -set pager_format = '-%Z-GMAIL: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- GMAIL: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-GMAIL: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -account-hook imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com \ -"set imap_user = 'ryan.kavanagh@mcgill.ca';\ -set imap_login = 'ryan.kavanagh@mcgill.ca';\ -set imap_authenticators = 'xoauth2';\ -set imap_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mcgill.ca-token';\ -set smtp_url = 'smtp://ryan.kavanagh@mcgill.ca@smtp.office365.com:587/';\ -set smtp_authenticators = 'xoauth2';\ -set smtp_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mcgill.ca-token';\ -unset smtp_pass;\ -set folder = 'imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com';\ -set record = '=Sent Items';\ -set copy = 'no';\ -set postponed = '=Drafts';\ -set spoolfile = '=Inbox';\ -set imap_passive = 'no';\ -set mbox = '=Archive';\ -set from = 'Ryan Kavanagh ';\ -source "~/.mutt/alias-mcgill.rc";\ -set pager_format = '-%Z-MCGILL.CA: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -account-hook imaps://ryan.kavanagh@mail.mcgill.ca@outlook.office365.com \ -"set imap_user = 'ryan.kavanagh@mail.mcgill.ca';\ -set imap_login = 'ryan.kavanagh@mail.mcgill.ca';\ -set imap_authenticators = 'xoauth2';\ -set imap_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mail.mcgill.ca-token';\ -set smtp_url = 'smtp://ryan.kavanagh@mail.mcgill.ca@smtp.office365.com:587/';\ -set smtp_authenticators = 'xoauth2';\ -set smtp_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mail.mcgill.ca-token';\ -unset smtp_pass;\ -set folder = 'imaps://ryan.kavanagh@mail.mcgill.ca@outlook.office365.com';\ -set record = '=Sent Items';\ -set copy = 'no';\ -set postponed = '=Drafts';\ -set spoolfile = '=Inbox';\ -set imap_passive = 'no';\ -set mbox = '=Archive';\ -set from = 'Ryan Kavanagh ';\ -source "~/.mutt/alias-mcgill.rc";\ -set pager_format = '-%Z-MAIL.MCGILL.CA: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- MAIL.MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-MAIL.MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -account-hook imaps://9rak@queensu.ca@outlook.office365.com \ -"set imap_user = '9rak@queensu.ca';\ -set imap_pass = 'QUEENSU_PASS';\ -set folder = 'imaps://9rak@queensu.ca@outlook.office365.com';\ -set record = '=Sent Items';\ -set copy = 'yes';\ -set postponed = '=Drafts';\ -set spoolfile = '=Inbox';\ -set imap_passive = 'no';\ -set mbox = '=Read';\ -unset smtp_url;\ -unset smtp_pass;\ -set sendmail = 'sendmail -oem -oi';\ -set from = 'Ryan Kavanagh ';\ -set pager_format = '-%Z-QUEENSU: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- QUEENSU: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-QUEENSU: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -account-hook imaps://imap.rak.ac \ -"set imap_user = 'rak';\ -set imap_pass = 'RYANAKCA_PASS';\ -set folder = 'imaps://imap.rak.ac/';\ -set record = '=Sent';\ -set copy = 'yes';\ -set postponed = '=Drafts';\ -set spoolfile = '=Virtual.INBOX';\ -set mbox = '=RAK';\ -unset smtp_url;\ -unset smtp_pass;\ -set sendmail = 'sendmail -oem -oi';\ -set from = 'Ryan Kavanagh ';\ -set pager_format = '-%Z-RAK.AC: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- RAK.AC: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-RAK.AC: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -account-hook imaps://mail.cs.mcgill.ca \ -"set imap_user = 'ryank';\ -set imap_pass = 'SOCS_PASS';\ -set imap_delim_chars = '.';\ -set folder = 'imaps://mail.cs.mcgill.ca/';\ -set record = '+INBOX.Sent';\ -set copy = 'yes';\ -set postponed = '+INBOX.Drafts';\ -set spoolfile = '+';\ -set mbox = '+INBOX.Read';\ -unset smtp_url;\ -unset smtp_pass;\ -set sendmail = 'sendmail -oem -oi';\ -set from = 'Ryan Kavanagh ';\ -source "~/.mutt/alias-mcgill.rc";\ -set pager_format = '-%Z-CS.MCGILL.CA: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- CS.MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-CS.MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -# Sources cmu aliases to override any personal variants already loaded in -# ~/.muttrc -account-hook imaps://rkavanag@alumni.cmu.edu@imap.gmail.com \ -"set imap_user = 'rkavanag@alumni.cmu.edu';\ -set imap_pass = 'CMU_PASS';\ -set imap_passive = 'no';\ -set imap_keepalive = 60;\ -set folder = 'imaps://rkavanag@alumni.cmu.edu@imap.gmail.com';\ -set spoolfile = '=INBOX';\ -set sendmail='sendmail -oem -oi';\ -set from = 'Ryan Kavanagh ';\ -set mbox = '=Read';\ -set record = '=[Gmail]/Sent Mail';\ -set copy = 'no';\ -unset smtp_url;\ -unset smtp_pass;\ -source "~/.mutt/alias-cmu.rc";\ -set pager_format = '-%Z-CMU: %C/%m: %-20.20n %s%* -- (%P)';\ -set compose_format = '-- CMU: Compose [Approx. msg size: %l Atts: %a]%>-';\ -set status_format = '-%r-CMU: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'" - -macro compose 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ -\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from Ubuntu account" - -macro compose 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ -\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from Kubuntu account" - -macro compose 'set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"\ -\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from CMU Alumni account" - -macro compose 'set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"\ -\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from CMU SCS account" - -macro compose 'set folder="imaps://outlook.office365.com"\ -=Sent Items\ -Ryan Kavanagh ' \ -"Send mail from QueensU" - -macro compose 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ -\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from cs.queensu.ca" - -macro compose 'set folder="imaps://imap.rak.ac/"\ -=Sent\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from Debian account" - -macro compose 'set folder="imaps://imap.rak.ac/"\ -=Sent\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from rak.ac" - -macro compose 'set folder="imaps://mail.cs.mcgill.ca/"\ -=INBOX.Sent\ -set sendmail="sendmail -oem -oi"\ -Ryan Kavanagh ' \ -"Send mail from McGill SOCS account" - -macro compose 'set folder="imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com"\ -\ -Ryan Kavanagh ' \ -"Send mail from McGill Staff account" diff --git a/.mutt/color.rc b/.mutt/color.rc deleted file mode 100644 index 4e44cc4..0000000 --- a/.mutt/color.rc +++ /dev/null @@ -1,112 +0,0 @@ -# Score coloring -# We put this first since we want it overridden if required by the colors -# below. - -# Various smilies and the like -color body brightwhite default "<[Gg]>" # -color body brightwhite default "<[Bb][Gg]>" # -color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc... -# *bold* -color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" -mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" -# _underline_ -color body brightblue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" -mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" -# /italic/ (Sometimes gets directory names) -color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" -mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" - -# gruvbox dark (contrast dark): - -# bg0 = 234 -# bg1 = 237 -# bg2 = 239 -# bg3 = 241 -# bg4 = 243 -# -# gray = 245 -# -# fg0 = 229 -# fg1 = 223 -# fg2 = 250 -# fg3 = 248 -# fg4 = 246 -# -# red = 167 -# green = 142 -# yellow = 214 -# blue = 109 -# purple = 175 -# aqua = 108 -# orange = 208 - - -# See http://www.mutt.org/doc/manual/#color - -color attachment color109 default -color bold color229 default -color error color167 default -color hdrdefault color246 default -color indicator color223 color237 -color markers color243 default -color normal color223 default -color quoted color250 default -color quoted1 color108 default -color quoted2 color250 default -color quoted3 color108 default -color quoted4 color250 default -color quoted5 color108 default -color search color234 color208 -color signature color108 default -color status color234 color250 -color tilde color243 default -color tree color142 default -color underline color223 color239 - -color sidebar_divider color250 default -color sidebar_new color142 default - -color index color142 default ~N -color index color108 default ~O -color index color109 default ~P -color index color234 color214 ~F -color index color175 default ~Q -color index color167 default ~= -color index color234 color223 ~T -color index color234 color167 ~D - -color header color214 default "^(To|From):" -color header color142 default "^Subject:" -color header color108 default "^X-Spam-Status:" -color header color108 default "^Received:" -color header color108 default "^List-Id:" - -# BSD's regex has RE_DUP_MAX set to 255. -color body color142 default "[a-z]{3,255}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+" -color body color142 default "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,255}[-a-zA-Z0-9_]{2,255}" -color body color208 default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" -color body color208 default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" -color body color234 color214 "[;:]-*[)>(" # +color body brightwhite default "<[Bb][Gg]>" # +color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc... +# *bold* +color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" +mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" +# _underline_ +color body brightblue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" +# /italic/ (Sometimes gets directory names) +color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" +mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" + +# gruvbox dark (contrast dark): + +# bg0 = 234 +# bg1 = 237 +# bg2 = 239 +# bg3 = 241 +# bg4 = 243 +# +# gray = 245 +# +# fg0 = 229 +# fg1 = 223 +# fg2 = 250 +# fg3 = 248 +# fg4 = 246 +# +# red = 167 +# green = 142 +# yellow = 214 +# blue = 109 +# purple = 175 +# aqua = 108 +# orange = 208 + + +# See http://www.mutt.org/doc/manual/#color + +color attachment color109 default +color bold color229 default +color error color167 default +color hdrdefault color246 default +color indicator color223 color237 +color markers color243 default +color normal color223 default +color quoted color250 default +color quoted1 color108 default +color quoted2 color250 default +color quoted3 color108 default +color quoted4 color250 default +color quoted5 color108 default +color search color234 color208 +color signature color108 default +color status color234 color250 +color tilde color243 default +color tree color142 default +color underline color223 color239 + +color sidebar_divider color250 default +color sidebar_new color142 default + +color index color142 default ~N +color index color108 default ~O +color index color109 default ~P +color index color234 color214 ~F +color index color175 default ~Q +color index color167 default ~= +color index color234 color223 ~T +color index color234 color167 ~D + +color header color214 default "^(To|From):" +color header color142 default "^Subject:" +color header color108 default "^X-Spam-Status:" +color header color108 default "^Received:" +color header color108 default "^List-Id:" + +# BSD's regex has RE_DUP_MAX set to 255. +color body color142 default "[a-z]{3,255}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+" +color body color142 default "[a-zA-Z]([-a-zA-Z0-9_]+\\.){2,255}[-a-zA-Z0-9_]{2,255}" +color body color208 default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" +color body color208 default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" +color body color234 color214 "[;:]-*[)>( 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ +\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from Ubuntu account" + +macro compose 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ +\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from Kubuntu account" + +macro compose 'set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"\ +\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from CMU Alumni account" + +macro compose 'set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"\ +\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from CMU SCS account" + +macro compose 'set folder="imaps://outlook.office365.com"\ +=Sent Items\ +Ryan Kavanagh ' \ +"Send mail from QueensU" + +macro compose 'set folder="imaps://ryanakca@gmail.com@imap.gmail.com"\ +\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from cs.queensu.ca" + +macro compose 'set folder="imaps://imap.rak.ac/"\ +=Sent\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from Debian account" + +macro compose 'set folder="imaps://imap.rak.ac/"\ +=Sent\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from rak.ac" + +macro compose 'set folder="imaps://mail.cs.mcgill.ca/"\ +=INBOX.Sent\ +set sendmail="sendmail -oem -oi"\ +Ryan Kavanagh ' \ +"Send mail from McGill SOCS account" + +macro compose 'set folder="imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com"\ +\ +Ryan Kavanagh ' \ +"Send mail from McGill Staff account" diff --git a/dot_mutt/score.rc b/dot_mutt/score.rc new file mode 100644 index 0000000..6cdceb4 --- /dev/null +++ b/dot_mutt/score.rc @@ -0,0 +1,24 @@ +uncolor index * +unscore * +source ~/.mutt/color.rc +# Set directly to me +score "~p" 8 +# from me +score "~P" 8 +# I replied to +score "~Q" 10 +# GPG signed +score "~g" 4 +# GPG encrypted +score "~G" 4 +# Flagged +score "~F" 5 +# Known ML +score "~l" 2 +# Add a point to messages less than 80,000 bytes +score "~z 0-80000" 1 +# From EG +score "~f MUTT_20_SCORE" 20 +score "~f MUTT_10_SCORE" 10 +# Unread +score "~U" 2 -- cgit v1.2.3