diff options
| author | Benjamin Linskey | 2026-06-09 16:04:55 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-06-09 16:32:22 -0400 |
| commit | 786a84dfd50a724a2bad4e4719aa9f608e454493 (patch) | |
| tree | e2fc254afdf7fe01edef474f7a7b7462c975f2ad | |
| parent | 71e58400a268856ea8c43fa01b0a346ff3f5bf91 (diff) | |
| download | dotfiles-786a84dfd50a724a2bad4e4719aa9f608e454493.tar.gz | |
Add mutt files
| -rw-r--r-- | .mutt/.gitignore | 4 | ||||
| -rw-r--r-- | .mutt/mailcap | 1 | ||||
| -rw-r--r-- | .mutt/muttrc | 88 |
3 files changed, 93 insertions, 0 deletions
diff --git a/.mutt/.gitignore b/.mutt/.gitignore new file mode 100644 index 0000000..549c15e --- /dev/null +++ b/.mutt/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!muttrc +!mailcap diff --git a/.mutt/mailcap b/.mutt/mailcap new file mode 100644 index 0000000..f93be9a --- /dev/null +++ b/.mutt/mailcap @@ -0,0 +1 @@ +text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput diff --git a/.mutt/muttrc b/.mutt/muttrc new file mode 100644 index 0000000..f65769b --- /dev/null +++ b/.mutt/muttrc @@ -0,0 +1,88 @@ +# The secrets file should look something like this: +# +# set my_user = <user> +# set my_pass = <password> +# set my_folder = imaps://$my_user@<domain>/ +# set my_smtp_url = smtp://$my_user@<domain>:<port> +source "gpg --decrypt --quiet $HOME/.mutt/secrets.gpg |" + +set ssl_starttls = yes +set ssl_force_tls = yes + +set imap_user = $my_user +set imap_pass = $my_pass +set folder = $my_folder + +# NOTE: With pkgsrc on Mac, install the cy2-plain package for authentication. +set my_smtp_user = $my_user +set smtp_url = $my_smtp_url +set smtp_pass = $my_pass + +set realname = "Benjamin Linskey" +set from = $my_user +set spoolfile = "+INBOX" +set record = "+Sent" +set postponed = "+Drafts" +set trash = "+Trash" +set imap_check_subscribed +unset imap_passive +set imap_keepalive = 300 +set mail_check = 120 +set header_cache = ~/.cache/mutt +set message_cachedir = ~/.cache/mutt +set edit_headers = yes +set timeout = 15 +set mailcap_path = ~/.mutt/mailcap +auto_view text/html +alternative_order text/plain text/enriched text/html +set sort=threads +set sort_aux=last-date-received +set sleep_time = 0 +set fast_reply = yes +set include = yes +set delete = yes +set auto_tag =yes + +set alias_file = ~/.mutt/aliases +set sort_alias = alias +set reverse_alias = yes +source $alias_file + +# Keybindings and macros +bind pager j next-line +bind pager k previous-line +bind pager g top +bind pager G bottom +bind index j next-entry +bind index k previous-entry +bind attach,index,browser g first-entry +bind attach,index,browser G last-entry +bind index / search +bind attach,index,pager,browser \CF next-page +bind attach,index,pager,browser \CB previous-page +bind attach,index,pager,browser \CD half-down +bind attach,index,pager,browser \CU half-up + +bind index f forward-message +bind index,pager A create-alias +macro index,pager a "<save-message>=Archive<enter>y<sync-mailbox>" "Archive message" +macro index,pager d "<delete-message><sync-mailbox>" "Delete message" +macro index,pager J "<save-message>'=Learn spam'<enter>" "Mark as spam" + +# Color palette +color hdrdefault cyan black +color quoted yellow black +color signature blue black +color attachment red black +color prompt white black +color message white black +color error brightred black +color indicator brightblack blue +color status white brightcyan +color tree white black +color normal white black +color markers red black +color search black yellow +color tilde brightmagenta black +color index blue black ~F +color index red black "~N|~O" |