aboutsummaryrefslogtreecommitdiff
path: root/.config/mutt/muttrc
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-04-07 10:45:56 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-04-07 10:45:56 +0000
commitc8ad47eabefc3ff9d545227e2d01eeaac876347d (patch)
treebec2f8a8f21e0444f72d496829b93d85a10d1823 /.config/mutt/muttrc
parent4bea5f472cc649da5fa4ef4dc7b719d75b9f2d57 (diff)
downloaddotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.gz
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.bz2
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.lz
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.xz
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.tar.zst
dotfiles-c8ad47eabefc3ff9d545227e2d01eeaac876347d.zip
Add mutt/neomutt config
Diffstat (limited to '')
-rw-r--r--.config/mutt/muttrc101
1 files changed, 101 insertions, 0 deletions
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
new file mode 100644
index 0000000..0956966
--- /dev/null
+++ b/.config/mutt/muttrc
@@ -0,0 +1,101 @@
+# vi: ft=muttrc
+set my_mutt_folder = "$XDG_CONFIG_HOME/mutt"
+
+# Tells Mutt to automatically view files with these mime types
+auto_view text/html
+# Order to try and show multipart emails
+alternative_order text/plain text/enriched text/html
+
+bind index R imap-fetch-mail
+bind index,pager \CK sidebar-prev
+bind index,pager \CJ sidebar-next
+bind index,pager \CL sidebar-open
+bind index,pager B sidebar-toggle-visible
+
+# settings
+set editor="$EDITOR '+set ft=mail'"
+set mailcap_path = "$my_mutt_folder/mailcap" # Mailcap file is used to tell mutt how to open different types of file
+set pager_index_lines = 10
+set use_from = yes
+set pager_context = 3 # show 3 lines of context
+set menu_context = 5 # start scrolling 5 items before the end
+set move = no # don't move messages when marking as read
+set mail_check = 30 # check for new mail every 30 seconds
+set imap_keepalive = 900 # 15 minutes
+set sleep_time = 0 # don't sleep when idle
+set wait_key = no # mutt won't ask "press key to continue"
+set forward_format = "Fwd: %s" # format of subject when forwarding
+set attribution = "On %d, %n wrote:" # format of quoting header
+set text_flowed = yes # correct indentation for plain text
+set crypt_autosign = yes
+set crypt_replysign = yes
+set crypt_replyencrypt = yes
+set crypt_replysignencrypted = yes
+set crypt_opportunistic_encrypt = no
+set crypt_use_gpgme = yes
+set crypt_verify_sig = yes
+set pgp_use_gpg_agent = yes
+set tmpdir = "$HOME/.cache/.mutt/tmp"
+set charset = "utf-8"
+set sort = reverse-threads
+set sort_aux = last-date-received
+set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
+set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
+set send_charset = "utf-8:iso-8859-1:us-ascii" # send in utf-8
+set assumed_charset = "iso-8859-1" # if there is no character set given on incoming messages, it is probably windows
+set sidebar_width = 12
+set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
+set sidebar_visible
+set sidebar_short_path
+set sidebar_folder_indent
+set tilde # use ~ to pad mutt
+set pager_stop # stop at end of message
+set menu_scroll # scroll menu
+set envelope_from # which from?
+set edit_headers # show headers when composing
+set fast_reply # skip to compose when replying
+set askcc # ask for CC:
+set fcc_attach # save attachments with the body
+set forward_decode # decode when forwarding
+set forward_quote # include message in forwards
+set mime_forward # forward attachments as part of body
+set reply_to # reply to Reply to: field
+set reverse_name # reply as whomever it was to
+set include # include message in replies
+set uncollapse_jump
+set sort_re # Sort by newest conversation first.
+set mail_check_stats
+unset sig_dashes # no dashes before sig
+unset markers
+unset imap_passive # Allow Mutt to open a new IMAP connection automatically.
+
+set spoolfile = "+INBOX"
+set record = "+Sent"
+set postponed = "+Drafts"
+
+# show spam score (from SpamAssassin only) when reading a message
+spam "X-Spam-Score: ([0-9\\.]+).*" "SA: %1"
+set pager_format = " %C - %[%H:%M] %.20v, %s%* %?H? [%H] ?"
+
+# do not show all headers, just a few
+ignore *
+unignore From To Cc Bcc Date Subject X-Spam-Score
+# and in this order
+unhdr_order *
+hdr_order From: To: Cc: Bcc: Date: Subject: X-Spam-Score:
+
+source "$my_mutt_folder/mailboxes"
+source "$my_mutt_folder/dracula.muttrc"
+source "$my_mutt_folder/vim-keys.rc"
+
+# Holds the account credentials
+# Such as the following variables
+# folder
+# imap_user
+# imap_pass
+# smtp_pass
+# smtp_url
+# from
+# realname
+source "$my_mutt_folder/account"
+