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.
 
 
 
 

205 lines
9.5 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 %H:%M"
  9. set index_format=" %2C %zs %zc %zt %D %-28.28L %?M?(%1M)& %4cr ? %?X? &·? %s"
  10. #set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
  11. set sort = 'reverse-date'
  12. set smtp_authenticators = 'gssapi:login'
  13. set query_command = "abook --mutt-query '%s'"
  14. set rfc2047_parameters = yes
  15. set sleep_time = 0 # Pause 0 seconds for informational messages
  16. set markers = no # Disables the `+` displayed at line wraps
  17. set mark_old = no # Unread mail stay unread until read
  18. set mime_forward = yes # attachments are forwarded with mail
  19. set wait_key = no # mutt won't ask "press key to continue"
  20. set fast_reply # skip to compose when replying
  21. set fcc_attach # save attachments with the body
  22. set forward_format = "Fwd: %s" # format of subject when forwarding
  23. set forward_quote # include message in forwards
  24. set reverse_name # reply as whomever it was to
  25. set include # include message in replies
  26. set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
  27. auto_view text/html # automatically show html (mailcap uses lynx)
  28. auto_view application/pgp-encrypted
  29. #set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages.
  30. alternative_order text/plain text/enriched text/html
  31. set to_chars=""
  32. ifdef crypt_chars set crypt_chars = " "
  33. set flag_chars = " "
  34. tag-transforms "replied" "↻ " \
  35. "encrytpted" "" \
  36. "signed" "" \
  37. "attachment" "" \
  38. tag-formats "replied" "GR" \
  39. "encrypted" "GE" \
  40. "signed" "GS" \
  41. "attachment" "GA" \
  42. bind index,pager i noop
  43. bind index,pager g noop
  44. bind index \Cf noop
  45. bind index,pager M noop
  46. bind index,pager C noop
  47. # General rebindings
  48. bind index gg first-entry
  49. bind index j next-entry
  50. bind index k previous-entry
  51. bind attach <return> view-mailcap
  52. bind attach l view-mailcap
  53. bind editor <space> noop
  54. bind index G last-entry
  55. bind index gg first-entry
  56. bind pager,attach h exit
  57. bind pager j next-line
  58. bind pager k previous-line
  59. bind pager l view-attachments
  60. bind index D delete-message
  61. bind pager D delete-message
  62. bind index U undelete-message
  63. bind index L limit
  64. bind index h noop
  65. bind index l display-message
  66. bind index,query <space> tag-entry
  67. #bind browser h goto-parent
  68. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  69. bind index,pager H view-raw-message
  70. bind browser l select-entry
  71. bind browser gg top-page
  72. bind browser G bottom-page
  73. bind pager gg top
  74. bind pager G bottom
  75. bind index,pager,browser d half-down
  76. bind index,pager,browser u half-up
  77. bind index,pager S sync-mailbox
  78. bind index,pager R group-reply
  79. bind index \031 previous-undeleted # Mouse wheel
  80. bind index \005 next-undeleted # Mouse wheel
  81. bind pager \031 previous-line # Mouse wheel
  82. bind pager \005 next-line # Mouse wheel
  83. bind editor <Tab> complete-query
  84. bind index \em recall-message
  85. macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
  86. macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
  87. macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
  88. macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
  89. macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
  90. macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
  91. macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
  92. macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
  93. macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
  94. macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
  95. macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
  96. macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
  97. macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
  98. macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
  99. macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
  100. macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
  101. macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
  102. macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
  103. #set crypt_autosign = yes
  104. #set crypt_opportunistic_encrypt = yes
  105. #set pgp_self_encrypt = yes
  106. #set pgp_default_key = 'your@gpgemailaddre.ss'
  107. 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"
  108. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  109. macro index O "<shell-escape>mutt-wizard -Y<enter>" "run mutt-wizard -Y to sync all mail"
  110. 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"
  111. macro index A "<limit>all\n" "show all messages (undo limit)"
  112. # Sidebar mappings
  113. set sidebar_visible = yes
  114. set sidebar_width = 20
  115. set sidebar_short_path = yes
  116. set sidebar_next_new_wrap = yes
  117. set mail_check_stats
  118. set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
  119. bind index,pager \Ck sidebar-prev
  120. bind index,pager \Cj sidebar-next
  121. bind index,pager \Co sidebar-open
  122. bind index,pager \Cp sidebar-prev-new
  123. bind index,pager \Cn sidebar-next-new
  124. bind index,pager B sidebar-toggle-visible
  125. ## Default index colors:
  126. #color index yellow default '.*'
  127. #color index_author red default '.*'
  128. #color index_number blue default
  129. #color index_subject cyan default '.*'
  130. #
  131. ## New mail is boldened:
  132. #color index brightyellow black "~N"
  133. #color index_author brightred black "~N"
  134. #color index_subject brightcyan black "~N"
  135. #
  136. ## Tagged mail is highlighted:
  137. #color index brightyellow blue "~T"
  138. #color index_author brightred blue "~T"
  139. #color index_subject brightcyan blue "~T"
  140. #
  141. ## Other colors and aesthetic settings:
  142. #mono bold bold
  143. #mono underline underline
  144. #mono indicator reverse
  145. #mono error bold
  146. #color normal default default
  147. #color indicator brightblack white
  148. #color sidebar_highlight red default
  149. #color sidebar_divider brightblack black
  150. #color sidebar_flagged red black
  151. #color sidebar_new green black
  152. #color normal brightyellow default
  153. #color error red default
  154. #color tilde black default
  155. #color message cyan default
  156. #color markers red white
  157. #color attachment white default
  158. #color search brightmagenta default
  159. #color status brightyellow black
  160. #color hdrdefault brightgreen default
  161. #color quoted green default
  162. #color quoted1 blue default
  163. #color quoted2 cyan default
  164. #color quoted3 yellow default
  165. #color quoted4 red default
  166. #color quoted5 brightred default
  167. #color signature brightgreen default
  168. #color bold black default
  169. #color underline black default
  170. #color normal default default
  171. #
  172. ## Regex highlighting:
  173. #color header brightmagenta default "^From"
  174. #color header brightcyan default "^Subject"
  175. #color header brightwhite default "^(CC|BCC)"
  176. #color header blue default ".*"
  177. #color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  178. #color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  179. #color body green default "\`[^\`]*\`" # Green text between ` and `
  180. #color body brightblue default "^# \.*" # Headings as bold blue
  181. #color body brightcyan default "^## \.*" # Subheadings as bold cyan
  182. #color body brightgreen default "^### \.*" # Subsubheadings as bold green
  183. #color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  184. #color body brightcyan default "[;:][-o][)/(|]" # emoticons
  185. #color body brightcyan default "[;:][)(|]" # emoticons
  186. #color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  187. #color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  188. #color body red default "(BAD signature)"
  189. #color body cyan default "(Good signature)"
  190. #color body brightblack default "^gpg: Good signature .*"
  191. #color body brightyellow default "^gpg: "
  192. #color body brightyellow red "^gpg: BAD signature from.*"
  193. #mono body bold "^gpg: Good signature"
  194. #mono body bold "^gpg: BAD signature from.*"
  195. #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<>\"]"