neomuttrc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 = "~/.config/neomutt/alias" ## Where to store aliases
  20. set header_cache = "~/.config/neomutt/cache/headers" ## Where to store headers
  21. set message_cachedir = "~/.config/neomutt/cache/bodies" ## Where to store bodies
  22. set certificate_file = "~/.config/neomutt/cerficates" ## Where to store certs
  23. set mailcap_path = "~/.config/neomutt/mailcap" ## Entries for filetypes
  24. set tmpdir = "~/.config/neomutt/temp" ## Where to keep temp files
  25. set signature = "~/.config/neomutt/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 = 1200 ## 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 new_mail_command="notify-send --icon='/home/demure/Pictures/icons/neomutt.png' 'New Email' '%n new\n%u unread' &"
  41. set pipe_decode ## Strip headers and eval mimes when piping
  42. set thorough_search ## Strip headers and eval mimes before searching
  43. #set sort_alias = alias
  44. ## Adding flowed, because it is a good-ness? http://joeclark.org/ffaq.html
  45. set text_flowed = yes ## Generate text/plain; format=flowed attachments.
  46. set allow_ansi
  47. subscribe ahashop
  48. subscribe cryptoparty-ann-arbor@inventati.org
  49. ### End Basic ### }}}
  50. ### Sourcing ### {{{
  51. source "~/.config/neomutt/index.muttrc"
  52. source "~/.config/neomutt/pager.muttrc"
  53. source "~/.config/neomutt/compose.muttrc"
  54. #source "~/.config/neomutt/alias"
  55. source "~/.config/neomutt/crypto.muttrc"
  56. source "~/.config/neomutt/sidebar.muttrc"
  57. #source "~/.config/neomutt/notmuch.muttrc"
  58. ## can use this to sources files that might not be there, like aliases
  59. #source `FILE=$HOME/.muttaliases; if [ ! -s "$FILE" ]; then FILE=/dev/null;fi;echo "$FILE"`
  60. ### End Sourcing ### }}}
  61. ### Color Scheme ### {{{
  62. #source "~/.config/neomutt/themes/tomorrow-night.muttrc"
  63. #source "~/.config/neomutt/themes/mutt-colors-solarized-dark-16.muttrc"
  64. source "~/.config/neomutt/themes/mutt-colors-solarized-dark-256.muttrc"
  65. ### End Color ### }}}
  66. ### Status Bar ### {{{
  67. set status_chars = " *%A"
  68. set status_on_top = yes
  69. set status_format = "Folder: %f : %r%n new (%m messages)%?d? (%d to delete)?%?t? (%t tagged)? %>-%?p?( %p postponed )? : "
  70. ### End Status Bar ### }}}
  71. ### Header Options ### {{{
  72. ignore * ## Ignore all headers
  73. unignore from: to: cc: date: subject: ## Show only these
  74. unhdr_order * ## Some distros order things
  75. hdr_order from: to: cc: date: subject: ## And in this order
  76. ### End Header ### }}}
  77. ### Account Settings ### {{{
  78. ## Multiple account setup
  79. ## Default inbox.
  80. set spoolfile = "+sdf/INBOX"
  81. source ~/.config/neomutt/accounts/sdf.muttrc
  82. ## Set account specific options on folder change
  83. folder-hook gmail/* source ~/.config/neomutt/accounts/gmail.muttrc
  84. folder-hook sdf/* source ~/.config/neomutt/accounts/sdf.muttrc
  85. folder-hook vps/* source ~/.config/neomutt/accounts/vps.muttrc
  86. folder-hook /var/spool/mail/$USER/* source ~/.config/neomutt/accounts/local.muttrc
  87. ### End Account }}}
  88. ## Fetches mbsync mail
  89. timeout-hook 'push "!~/projects/personal/scripts/neomutt_hook.sh &<enter><check-stats>"'
  90. startup-hook 'push "!~/projects/personal/scripts/neomutt_hook.sh &<enter><refresh>"'
  91. ## Warns if replying to multiple recipt email
  92. reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"