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.
 
 
 
 

187 lines
8.9 KiB

  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 = $HOME/.config/mutt/mailcap:/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. bind index,pager M noop
  34. bind index,pager C noop
  35. # General rebindings
  36. bind index gg first-entry
  37. bind index j next-entry
  38. bind index k previous-entry
  39. bind attach <return> view-mailcap
  40. bind attach l view-mailcap
  41. bind editor <space> noop
  42. bind index G last-entry
  43. bind index gg first-entry
  44. bind pager,attach h exit
  45. bind pager j next-line
  46. bind pager k previous-line
  47. bind pager l view-attachments
  48. bind index D delete-message
  49. bind index U undelete-message
  50. bind index L limit
  51. bind index h noop
  52. bind index l display-message
  53. bind index,query <space> tag-entry
  54. #bind browser h goto-parent
  55. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  56. bind index,pager H view-raw-message
  57. bind browser l select-entry
  58. bind pager,browser gg top-page
  59. bind pager,browser G bottom-page
  60. bind index,pager,browser d half-down
  61. bind index,pager,browser u half-up
  62. bind index,pager S sync-mailbox
  63. bind index,pager R group-reply
  64. bind index \031 previous-undeleted # Mouse wheel
  65. bind index \005 next-undeleted # Mouse wheel
  66. bind pager \031 previous-line # Mouse wheel
  67. bind pager \005 next-line # Mouse wheel
  68. bind editor <Tab> complete-query
  69. macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
  70. macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
  71. macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
  72. macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
  73. macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
  74. macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
  75. macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
  76. macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
  77. macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
  78. macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
  79. macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
  80. macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
  81. macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
  82. macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
  83. macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
  84. macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
  85. macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
  86. macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
  87. #set crypt_autosign = yes
  88. #set crypt_opportunistic_encrypt = yes
  89. #set pgp_self_encrypt = yes
  90. #set pgp_default_key = 'your@gpgemailaddre.ss'
  91. 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"
  92. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  93. macro index O "<shell-escape>mw -Y<enter>" "run mw -Y to sync all mail"
  94. 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"
  95. macro index A "<limit>all\n" "show all messages (undo limit)"
  96. # Sidebar mappings
  97. set sidebar_visible = yes
  98. set sidebar_width = 20
  99. set sidebar_short_path = yes
  100. set sidebar_next_new_wrap = yes
  101. set mail_check_stats
  102. set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
  103. bind index,pager \Ck sidebar-prev
  104. bind index,pager \Cj sidebar-next
  105. bind index,pager \Co sidebar-open
  106. bind index,pager \Cp sidebar-prev-new
  107. bind index,pager \Cn sidebar-next-new
  108. bind index,pager B sidebar-toggle-visible
  109. # Default index colors:
  110. color index yellow default '.*'
  111. color index_author red default '.*'
  112. color index_number blue default
  113. color index_subject cyan default '.*'
  114. # New mail is boldened:
  115. color index brightyellow black "~N"
  116. color index_author brightred black "~N"
  117. color index_subject brightcyan black "~N"
  118. # Tagged mail is highlighted:
  119. color index brightyellow blue "~T"
  120. color index_author brightred blue "~T"
  121. color index_subject brightcyan blue "~T"
  122. # Other colors and aesthetic settings:
  123. mono bold bold
  124. mono underline underline
  125. mono indicator reverse
  126. mono error bold
  127. color normal default default
  128. color indicator brightblack white
  129. color sidebar_highlight red default
  130. color sidebar_divider brightblack black
  131. color sidebar_flagged red black
  132. color sidebar_new green black
  133. color normal brightyellow default
  134. color error red default
  135. color tilde black default
  136. color message cyan default
  137. color markers red white
  138. color attachment white default
  139. color search brightmagenta default
  140. color status brightyellow black
  141. color hdrdefault brightgreen default
  142. color quoted green default
  143. color quoted1 blue default
  144. color quoted2 cyan default
  145. color quoted3 yellow default
  146. color quoted4 red default
  147. color quoted5 brightred default
  148. color signature brightgreen default
  149. color bold black default
  150. color underline black default
  151. color normal default default
  152. # Regex highlighting:
  153. color header blue default ".*"
  154. color header brightmagenta default "^(From)"
  155. color header brightcyan default "^(Subject)"
  156. color header brightwhite default "^(CC|BCC)"
  157. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  158. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  159. color body green default "\`[^\`]*\`" # Green text between ` and `
  160. color body brightblue default "^# \.*" # Headings as bold blue
  161. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  162. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  163. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  164. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  165. color body brightcyan default "[;:][)(|]" # emoticons
  166. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  167. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  168. color body red default "(BAD signature)"
  169. color body cyan default "(Good signature)"
  170. color body brightblack default "^gpg: Good signature .*"
  171. color body brightyellow default "^gpg: "
  172. color body brightyellow red "^gpg: BAD signature from.*"
  173. mono body bold "^gpg: Good signature"
  174. mono body bold "^gpg: BAD signature from.*"
  175. 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<>\"]"