From ed293706d2e40a44328993f1b598c20e03ed8e02 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:51:09 -0500 Subject: mutt --- 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 +++++ 6 files changed, 445 insertions(+) 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 (limited to 'dot_mutt') diff --git a/dot_mutt/color.rc b/dot_mutt/color.rc new file mode 100644 index 0000000..4e44cc4 --- /dev/null +++ b/dot_mutt/color.rc @@ -0,0 +1,112 @@ +# 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 "[;:]-*[)>( '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