123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- ##### My (demuredemeanor) muttrc
- # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
- # https://notabug.org/demure/dotfiles
- # legacy repo http://github.com/demure/dotfiles
- # vim:set syntax=muttrc:
- ## This is heavily inspired by Mark H. Nichols's post
- # http://zanshin.net/2015/01/19/teaching-a-homely-mutt-new-tricks/
- #
- # which in turn was inspired by Steve Losh's post
- # http://stevelosh.com/blog/2012/10/the-homely-mutt/
- #
- # Aside from using my accounts, and eventually a few tweaks,
- # I am /not/ using OS X's keychain...
- # I am using pass now, which is working quite well
- # https://github.com/sup-heliotrope/sup/wiki/Securely-Store-Password
- ### Paths ### {{{
- ## sidebar 'mailboxes' relies on 'folder'
- set folder = "~/.mail" ## Mailbox location
- #set alias_file = "~/.config/neomutt/alias" ## Where to store aliases
- set header_cache = "~/.config/neomutt/cache/headers" ## Where to store headers
- set message_cachedir = "~/.config/neomutt/cache/bodies" ## Where to store bodies
- set certificate_file = "~/.config/neomutt/cerficates" ## Where to store certs
- set mailcap_path = "~/.config/neomutt/mailcap" ## Entries for filetypes
- set tmpdir = "~/.config/neomutt/temp" ## Where to keep temp files
- set signature = "~/.config/neomutt/sig" ## My signature file
- ### End Pathes ### }}}
- ### Basic Options ### {{{
- set wait_key = no ## Shut up, mutt
- set mbox_type = Maildir ## Mailbox type
- #set timeout = 3 ## Idle time before scanning
- set timeout = 1200 ## Idle time before scanning
- #set mail_check = 0 ## Minimum time between scans
- set mail_check = 5 ## Minimum time between scans
- unset move ## Gmail does that
- set delete ## Don't ask, just do
- unset confirmappend ## Don't ask, just do!
- set quit = ask-no ## Don't ask, just do !!
- unset mark_old ## Read/new is good enough for me
- #set beep_new ## Bell on new mails
- set new_mail_command="notify-send --icon='/home/demure/Pictures/icons/neomutt.png' 'New Email' '%n new\n%u unread' &"
- set pipe_decode ## Strip headers and eval mimes when piping
- set thorough_search ## Strip headers and eval mimes before searching
- #set sort_alias = alias
- ## Adding flowed, because it is a good-ness? http://joeclark.org/ffaq.html
- set text_flowed = yes ## Generate text/plain; format=flowed attachments.
- set allow_ansi
- subscribe ahashop
- subscribe cryptoparty-ann-arbor@inventati.org
- ### End Basic ### }}}
- ### Sourcing ### {{{
- source "~/.config/neomutt/index.muttrc"
- source "~/.config/neomutt/pager.muttrc"
- source "~/.config/neomutt/compose.muttrc"
- #source "~/.config/neomutt/alias"
- source "~/.config/neomutt/crypto.muttrc"
- source "~/.config/neomutt/sidebar.muttrc"
- #source "~/.config/neomutt/notmuch.muttrc"
- ## can use this to sources files that might not be there, like aliases
- #source `FILE=$HOME/.muttaliases; if [ ! -s "$FILE" ]; then FILE=/dev/null;fi;echo "$FILE"`
- ### End Sourcing ### }}}
- ### Color Scheme ### {{{
- #source "~/.config/neomutt/themes/tomorrow-night.muttrc"
- #source "~/.config/neomutt/themes/mutt-colors-solarized-dark-16.muttrc"
- source "~/.config/neomutt/themes/mutt-colors-solarized-dark-256.muttrc"
- ### End Color ### }}}
- ### Status Bar ### {{{
- set status_chars = " *%A"
- set status_on_top = yes
- set status_format = "Folder: %f : %r%n new (%m messages)%?d? (%d to delete)?%?t? (%t tagged)? %>-%?p?( %p postponed )? : "
- ### End Status Bar ### }}}
- ### Header Options ### {{{
- ignore * ## Ignore all headers
- unignore from: to: cc: date: subject: ## Show only these
- unhdr_order * ## Some distros order things
- hdr_order from: to: cc: date: subject: ## And in this order
- ### End Header ### }}}
- ### Account Settings ### {{{
- ## Multiple account setup
- ## Default inbox.
- set spoolfile = "+sdf/INBOX"
- source ~/.config/neomutt/accounts/sdf.muttrc
- ## Set account specific options on folder change
- folder-hook gmail/* source ~/.config/neomutt/accounts/gmail.muttrc
- folder-hook sdf/* source ~/.config/neomutt/accounts/sdf.muttrc
- folder-hook vps/* source ~/.config/neomutt/accounts/vps.muttrc
- folder-hook /var/spool/mail/$USER/* source ~/.config/neomutt/accounts/local.muttrc
- ### End Account }}}
- ## Fetches mbsync mail
- timeout-hook 'push "!~/projects/personal/scripts/neomutt_hook.sh &<enter><check-stats>"'
- startup-hook 'push "!~/projects/personal/scripts/neomutt_hook.sh &<enter><refresh>"'
- ## Warns if replying to multiple recipt email
- reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"
|