muttrc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##### My (demuredemeanor) muttrc
  2. # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
  3. # https://notabug.org/demure/dotfiles
  4. # legacy repo http://github.com/demure/dotfiles
  5. # vim:set syntax=muttrc:
  6. ## This is heavily inspired by Mark H. Nichols's post
  7. # http://zanshin.net/2015/01/19/teaching-a-homely-mutt-new-tricks/
  8. #
  9. # which in turn was inspired by Steve Losh's post
  10. # http://stevelosh.com/blog/2012/10/the-homely-mutt/
  11. #
  12. # Aside from using my accounts, and eventually a few tweaks,
  13. # I am /not/ using OS X's keychain...
  14. # I am using pass now, which is working quite well
  15. # https://github.com/sup-heliotrope/sup/wiki/Securely-Store-Password
  16. ### Paths ### {{{
  17. ## sidebar 'mailboxes' relies on 'folder'
  18. set folder = "~/.mail" ## Mailbox location
  19. #set alias_file = "~/.mutt/alias" ## Where to store aliases
  20. set header_cache = "~/.mutt/cache/headers" ## Where to store headers
  21. set message_cachedir = "~/.mutt/cache/bodies" ## Where to store bodies
  22. set certificate_file = "~/.mutt/cerficates" ## Where to store certs
  23. set mailcap_path = "~/.mutt/mailcap" ## Entries for filetypes
  24. set tmpdir = "~/.mutt/temp" ## Where to keep temp files
  25. set signature = "~/.mutt/sig" ## My signature file
  26. ### End Pathes ### }}}
  27. ### Basic Options ### {{{
  28. set wait_key = no ## Shut up, mutt
  29. set mbox_type = Maildir ## Mailbox type
  30. #set timeout = 3 ## Idle time before scanning
  31. set timeout = 600 ## Idle time before scanning
  32. #set mail_check = 0 ## Minimum time between scans
  33. set mail_check = 5 ## Minimum time between scans
  34. unset move ## Gmail does that
  35. set delete ## Don't ask, just do
  36. unset confirmappend ## Don't ask, just do!
  37. set quit = ask-no ## Don't ask, just do !!
  38. unset mark_old ## Read/new is good enough for me
  39. set beep_new ## Bell on new mails
  40. set pipe_decode ## Strip headers and eval mimes when piping
  41. set thorough_search ## Strip headers and eval mimes before searching
  42. #set sort_alias = alias
  43. ## Adding flowed, because it is a good-ness? http://joeclark.org/ffaq.html
  44. set text_flowed = yes ## Generate text/plain; format=flowed attachments.
  45. set allow_ansi
  46. subscribe ahashop
  47. subscribe cryptoparty-ann-arbor@inventati.org
  48. ### End Basic ### }}}
  49. ### Sourcing ### {{{
  50. source "~/.mutt/index.muttrc"
  51. source "~/.mutt/pager.muttrc"
  52. source "~/.mutt/compose.muttrc"
  53. #source "~/.mutt/alias"
  54. source "~/.mutt/crypto.muttrc"
  55. source "~/.mutt/sidebar.muttrc"
  56. source "~/.mutt/notmuch.muttrc"
  57. ## can use this to sources files that might not be there, like aliases
  58. #source `FILE=$HOME/.muttaliases; if [ ! -s "$FILE" ]; then FILE=/dev/null;fi;echo "$FILE"`
  59. ### End Sourcing ### }}}
  60. ### Color Scheme ### {{{
  61. #source "~/.mutt/themes/tomorrow-night.muttrc"
  62. #source "~/.mutt/themes/mutt-colors-solarized-dark-16.muttrc"
  63. source "~/.mutt/themes/mutt-colors-solarized-dark-256.muttrc"
  64. ### End Color ### }}}
  65. ### Status Bar ### {{{
  66. set status_chars = " *%A"
  67. set status_on_top = yes
  68. set status_format = "Folder: %f : %r%n new (%m messages)%?d? (%d to delete)?%?t? (%t tagged)? %>-%?p?( %p postponed )? : "
  69. ### End Status Bar ### }}}
  70. ### Header Options ### {{{
  71. ignore * ## Ignore all headers
  72. unignore from: to: cc: date: subject: ## Show only these
  73. unhdr_order * ## Some distros order things
  74. hdr_order from: to: cc: date: subject: ## And in this order
  75. ### End Header ### }}}
  76. ### Account Settings ### {{{
  77. ## Multiple account setup
  78. ## Default inbox.
  79. set spoolfile = "+sdf/INBOX"
  80. source ~/.mutt/accounts/sdf.muttrc
  81. ## Set account specific options on folder change
  82. folder-hook emu/* source ~/.mutt/accounts/emu.muttrc
  83. folder-hook sdf/* source ~/.mutt/accounts/sdf.muttrc
  84. folder-hook gmail/* source ~/.mutt/accounts/gmail.muttrc
  85. folder-hook /var/spool/mail/$USER/* source ~/.mutt/accounts/local.muttrc
  86. ### End Account }}}
  87. ## Fetches offlineimap mail
  88. timeout-hook 'push "!~/projects/personal/scripts/offlineimap_neomutt_hook.sh &<enter>"'
  89. startup-hook 'push "!~/projects/personal/scripts/offlineimap_neomutt_hook.sh &<enter>"'
  90. ## Warns if replying to multiple recipt email
  91. reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"