You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mutt-wizard.muttrc 7.6 KiB

4 years ago
5 years ago
5 years ago
6 years ago
4 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # vim: filetype=neomuttrc
  2. # This file contains all of mutt-wizard's default settings.
  3. # mutt-wizard will have this file sourced from your muttrc.
  4. # In the interest of seamless updating, do not edit this file.
  5. # If you want to override any settings, set those in your muttrc.
  6. set mailcap_path = /usr/local/share/mutt-wizard/mailcap:$mailcap_path
  7. set mime_type_query_command = "file --mime-type -b %s"
  8. set date_format="%y/%m/%d %I:%M%p"
  9. set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
  10. set sort = 'reverse-date'
  11. set smtp_authenticators = 'gssapi:login'
  12. set query_command = "abook --mutt-query '%s'"
  13. set rfc2047_parameters = yes
  14. set sleep_time = 0 # Pause 0 seconds for informational messages
  15. set markers = no # Disables the `+` displayed at line wraps
  16. set mark_old = no # Unread mail stay unread until read
  17. set mime_forward = yes # attachments are forwarded with mail
  18. set wait_key = no # mutt won't ask "press key to continue"
  19. set fast_reply # skip to compose when replying
  20. set fcc_attach # save attachments with the body
  21. set forward_format = "Fwd: %s" # format of subject when forwarding
  22. set forward_quote # include message in forwards
  23. set reverse_name # reply as whomever it was to
  24. set include # include message in replies
  25. set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
  26. auto_view text/html # automatically show html (mailcap uses lynx)
  27. auto_view application/pgp-encrypted
  28. #set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages.
  29. alternative_order text/plain text/enriched text/html
  30. bind index,pager i noop
  31. bind index,pager g noop
  32. bind index \Cf noop
  33. # General rebindings
  34. bind index j next-entry
  35. bind index k previous-entry
  36. bind attach <return> view-mailcap
  37. bind attach l view-mailcap
  38. bind editor <space> noop
  39. bind index G last-entry
  40. bind index gg first-entry
  41. bind pager,attach h exit
  42. bind pager j next-line
  43. bind pager k previous-line
  44. bind pager l view-attachments
  45. bind index D delete-message
  46. bind index U undelete-message
  47. bind index L limit
  48. bind index h noop
  49. bind index l display-message
  50. bind index,query <space> tag-entry
  51. #bind browser h goto-parent
  52. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  53. bind index,pager H view-raw-message
  54. bind browser l select-entry
  55. bind pager,browser gg top-page
  56. bind pager,browser G bottom-page
  57. bind index,pager,browser d half-down
  58. bind index,pager,browser u half-up
  59. bind index,pager S sync-mailbox
  60. bind index,pager R group-reply
  61. bind index \031 previous-undeleted # Mouse wheel
  62. bind index \005 next-undeleted # Mouse wheel
  63. bind pager \031 previous-line # Mouse wheel
  64. bind pager \005 next-line # Mouse wheel
  65. bind editor <Tab> complete-query
  66. #set crypt_autosign = yes
  67. #set crypt_opportunistic_encrypt = yes
  68. #set pgp_self_encrypt = yes
  69. #set pgp_default_key = 'your@gpgemailaddre.ss'
  70. macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
  71. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  72. macro index O "<shell-escape>mw -Y<enter>" "run mw -Y to sync all mail"
  73. macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
  74. macro index A "<limit>all\n" "show all messages (undo limit)"
  75. # Sidebar mappings
  76. set sidebar_visible = yes
  77. set sidebar_width = 20
  78. set sidebar_short_path = yes
  79. set sidebar_next_new_wrap = yes
  80. set mail_check_stats
  81. set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
  82. bind index,pager \Ck sidebar-prev
  83. bind index,pager \Cj sidebar-next
  84. bind index,pager \Co sidebar-open
  85. bind index,pager \Cp sidebar-prev-new
  86. bind index,pager \Cn sidebar-next-new
  87. bind index,pager B sidebar-toggle-visible
  88. # Default index colors:
  89. color index yellow default '.*'
  90. color index_author red default '.*'
  91. color index_number blue default
  92. color index_subject cyan default '.*'
  93. # New mail is boldened:
  94. color index brightyellow black "~N"
  95. color index_author brightred black "~N"
  96. color index_subject brightcyan black "~N"
  97. # Tagged mail is highlighted:
  98. color index brightyellow blue "~T"
  99. color index_author brightred blue "~T"
  100. color index_subject brightcyan blue "~T"
  101. # Other colors and aesthetic settings:
  102. mono bold bold
  103. mono underline underline
  104. mono indicator reverse
  105. mono error bold
  106. color normal default default
  107. color indicator brightblack white
  108. color sidebar_highlight red default
  109. color sidebar_divider brightblack black
  110. color sidebar_flagged red black
  111. color sidebar_new green black
  112. color normal brightyellow default
  113. color error red default
  114. color tilde black default
  115. color message cyan default
  116. color markers red white
  117. color attachment white default
  118. color search brightmagenta default
  119. color status brightyellow black
  120. color hdrdefault brightgreen default
  121. color quoted green default
  122. color quoted1 blue default
  123. color quoted2 cyan default
  124. color quoted3 yellow default
  125. color quoted4 red default
  126. color quoted5 brightred default
  127. color signature brightgreen default
  128. color bold black default
  129. color underline black default
  130. color normal default default
  131. # Regex highlighting:
  132. color header blue default ".*"
  133. color header brightmagenta default "^(From)"
  134. color header brightcyan default "^(Subject)"
  135. color header brightwhite default "^(CC|BCC)"
  136. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  137. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  138. color body green default "\`[^\`]*\`" # Green text between ` and `
  139. color body brightblue default "^# \.*" # Headings as bold blue
  140. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  141. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  142. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  143. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  144. color body brightcyan default "[;:][)(|]" # emoticons
  145. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  146. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  147. color body red default "(BAD signature)"
  148. color body cyan default "(Good signature)"
  149. color body brightblack default "^gpg: Good signature .*"
  150. color body brightyellow default "^gpg: "
  151. color body brightyellow red "^gpg: BAD signature from.*"
  152. mono body bold "^gpg: Good signature"
  153. mono body bold "^gpg: BAD signature from.*"
  154. color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"