aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mutt/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2023-08-23 17:08:52 -0500
committerToby Vincent <tobyv@tobyvin.dev>2023-08-23 17:08:52 -0500
commit35383512da5acbfdf79f666056f4dddab914b843 (patch)
tree68eff5c7e6dcd5626d0aacae2b378ec518a89c50 /mutt/.config
parent9915da1c1ae48d8c7bc1bce2a782684735d154d2 (diff)
feat(mutt): add mutt configs
Diffstat (limited to 'mutt/.config')
-rw-r--r--mutt/.config/mutt/binds.rc28
-rw-r--r--mutt/.config/mutt/colors.rc122
-rw-r--r--mutt/.config/mutt/gmail.rc13
-rw-r--r--mutt/.config/mutt/muttrc24
-rw-r--r--mutt/.config/mutt/porkbun.rc11
5 files changed, 198 insertions, 0 deletions
diff --git a/mutt/.config/mutt/binds.rc b/mutt/.config/mutt/binds.rc
new file mode 100644
index 0000000..a9aeaf6
--- /dev/null
+++ b/mutt/.config/mutt/binds.rc
@@ -0,0 +1,28 @@
+bind attach,browser,index g noop
+bind attach,browser,index gg first-entry
+bind attach,browser,index G last-entry
+bind pager g noop
+bind pager gg top
+bind pager G bottom
+bind pager k previous-line
+bind pager j next-line
+
+bind attach,browser,pager,index \CF next-page
+bind attach,browser,pager,index \CB previous-page
+bind attach,browser,pager,index \Cu half-up
+bind attach,browser,pager,index \Cd half-down
+bind browser,pager \Ce next-line
+bind browser,pager \Cy previous-line
+bind index \Ce next-line
+bind index \Cy previous-line
+
+bind pager,index d noop
+bind pager,index dd delete-message
+
+bind browser,pager,index N search-opposite
+bind pager,index dT delete-thread
+bind pager,index dt delete-subthread
+bind pager,index gt next-thread
+bind pager,index gT previous-thread
+bind index za collapse-thread
+bind index zA collapse-all # Missing :folddisable/foldenable
diff --git a/mutt/.config/mutt/colors.rc b/mutt/.config/mutt/colors.rc
new file mode 100644
index 0000000..d881a91
--- /dev/null
+++ b/mutt/.config/mutt/colors.rc
@@ -0,0 +1,122 @@
+# 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 color234
+color bold color229 color234
+color error color167 color234
+color hdrdefault color246 color234
+color indicator color223 color237
+color markers color243 color234
+color normal color223 color234
+color quoted color250 color234
+color quoted1 color108 color234
+color quoted2 color250 color234
+color quoted3 color108 color234
+color quoted4 color250 color234
+color quoted5 color108 color234
+color search color234 color208
+color signature color108 color234
+color status color234 color250
+color tilde color243 color234
+color tree color142 color234
+color underline color223 color239
+
+color sidebar_divider color250 color234
+color sidebar_new color142 color234
+
+color index color142 color234 ~N
+color index color108 color234 ~O
+color index color109 color234 ~P
+color index color214 color234 ~F
+color index color175 color234 ~Q
+color index color167 color234 ~=
+color index color234 color223 ~T
+color index color234 color167 ~D
+
+color header color214 color234 "^(To:|From:)"
+color header color142 color234 "^Subject:"
+color header color108 color234 "^X-Spam-Status:"
+color header color108 color234 "^Received:"
+
+# Regex magic for URLs and hostnames
+#
+# Attention: BSD's regex has RE_DUP_MAX set to 255.
+#
+# Examples:
+# http://some-service.example.com
+# example.com
+# a.example.com
+# some-service.example.com
+# example.com/
+# example.com/datenschutz
+# file:///tmp/foo
+#
+# Non-examples:
+# 1.1.1900
+# 14.02.2022/24:00
+# 23.59
+# w.l.o.g
+# team.its
+color body color142 color234 "[a-z]{3,255}://[[:graph:]]*"
+color body color142 color234 "([-[:alnum:]]+\\.)+([0-9]{1,3}|[-[:alpha:]]+)/[[:graph:]]*"
+color body color142 color234 "([-[:alnum:]]+\\.){2,255}[-[:alpha:]]{2,10}"
+
+# IPv4 and IPv6 stolen from https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
+color body color142 color234 "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
+color body color142 color234 "(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))"
+
+# Mail addresses and mailto URLs
+color body color208 color234 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
+color body color208 color234 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
+
+# some simleys and stuff
+color body color234 color214 "[;:]-*[)>(<lt;|]"
+color body color229 color234 "\\*[- A-Za-z]+\\*"
+
+color body color214 color234 "^-.*PGP.*-*"
+color body color142 color234 "^gpg: Good signature from"
+color body color167 color234 "^gpg: Can't.*$"
+color body color214 color234 "^gpg: WARNING:.*$"
+color body color167 color234 "^gpg: BAD signature from"
+color body color167 color234 "^gpg: Note: This key has expired!"
+color body color214 color234 "^gpg: There is no indication that the signature belongs to the owner."
+color body color214 color234 "^gpg: can't handle these multiple signatures"
+color body color214 color234 "^gpg: signature verification suppressed"
+color body color214 color234 "^gpg: invalid node with packet of type"
+
+color body color142 color234 "^Good signature from:"
+color body color167 color234 "^.?BAD.? signature from:"
+color body color142 color234 "^Verification successful"
+color body color167 color234 "^Verification [^s][^[:space:]]*$"
+
+color compose header color223 color234
+color compose security_encrypt color175 color234
+color compose security_sign color109 color234
+color compose security_both color142 color234
+color compose security_none color208 color234
+
+color sidebar_unread color108 color234
diff --git a/mutt/.config/mutt/gmail.rc b/mutt/.config/mutt/gmail.rc
new file mode 100644
index 0000000..230a47a
--- /dev/null
+++ b/mutt/.config/mutt/gmail.rc
@@ -0,0 +1,13 @@
+set folder=~/.local/share/mail/gmail
+set mbox_type=Maildir
+
+set spoolfile=+INBOX
+set record=+Sent
+set postponed=+Drafts
+
+set sendmail="/usr/bin/msmtp"
+
+alternates ^tobyv@tobyvin.dev$
+
+unmailboxes *
+mailboxes +INBOX +Sent +Drafts +Trash +Archive
diff --git a/mutt/.config/mutt/muttrc b/mutt/.config/mutt/muttrc
new file mode 100644
index 0000000..d99fab9
--- /dev/null
+++ b/mutt/.config/mutt/muttrc
@@ -0,0 +1,24 @@
+set realname = 'Toby Vincent'
+
+set sendmail = "/usr/bin/msmtp"
+set edit_headers = yes
+set header_cache = ~/.cache/mutt
+
+set sort=threads
+set sort_aux=last-date-received
+
+set mail_check_stats
+set sidebar_visible
+set sidebar_format = "%B%<F? [%F]>%* %<N?%N/>%S"
+bind index,pager \CP sidebar-prev
+bind index,pager \CN sidebar-next
+bind index,pager \CO sidebar-open
+
+source "binds.rc"
+source "colors.rc"
+
+source "gmail.rc"
+folder-hook $folder 'source gmail.rc'
+
+source "porkbun.rc"
+folder-hook $folder 'source porkbun.rc'
diff --git a/mutt/.config/mutt/porkbun.rc b/mutt/.config/mutt/porkbun.rc
new file mode 100644
index 0000000..2b6962e
--- /dev/null
+++ b/mutt/.config/mutt/porkbun.rc
@@ -0,0 +1,11 @@
+set folder=~/.local/share/mail/porkbun
+set mbox_type=Maildir
+
+set spoolfile=+INBOX
+set record=+Sent
+set postponed=+Drafts
+
+set sendmail="/usr/bin/msmtp"
+
+unmailboxes *
+mailboxes +INBOX +Sent +Drafts +Junk +Trash +Archive