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.
 
 
 
 

190 regels
9.0 KiB

  1. # vim: filetype=neomuttrc
  2. #
  3. # This file contains all of mutt-wizard's defaults.
  4. # mutt-wizard will have this file sourced from your muttrc.
  5. # The vim-like key binding has been established by comparing different dotfiles.
  6. # You can change bindings after the sourcing of the defaults.
  7. # Or you can keep mutt-wizard from sourcing its defaults with this comment in your muttrc:
  8. # #source /usr/share/mutt-wizard/mutt-wizard.muttrc
  9. #
  10. # In the interest of seamless updating, do not edit this file.
  11. # ==================== SETTINGS ==================== #
  12. set mailcap_path = /usr/share/mutt-wizard/mailcap
  13. set date_format="%y/%m/%d %I:%M%p"
  14. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  15. set sort = 'reverse-date'
  16. set smtp_authenticators = 'gssapi:login'
  17. set query_command = "abook --mutt-query '%s'"
  18. set rfc2047_parameters = yes
  19. set sleep_time = 0 # Pause 0 seconds for informational messages
  20. set markers = no # Disables the `+` displayed at line wraps
  21. set mark_old = no # Unread mail stay unread until read
  22. set mime_forward = yes # attachments are forwarded with mail
  23. set wait_key = no # mutt won't ask "press key to continue"
  24. set fast_reply # skip to compose when replying
  25. set fcc_attach # save attachments with the body
  26. set forward_format = "Fwd: %s" # format of subject when forwarding
  27. set forward_quote # include message in forwards
  28. set reverse_name # reply as whomever it was to
  29. set include # include message in replies
  30. set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
  31. auto_view text/html # automatically show html (mailcap uses w3m)
  32. auto_view application/pgp-encrypted
  33. alternative_order text/plain text/enriched text/html
  34. # Sidebar mappings
  35. set sidebar_visible = yes
  36. set sidebar_width = 20
  37. set sidebar_short_path = yes
  38. set sidebar_next_new_wrap = yes
  39. set mail_check_stats
  40. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  41. # ==================== settings ==================== #
  42. # =================== SHORTCUTS ==================== #
  43. # Non-standard, more vim-like key mappings
  44. #
  45. # Free keys
  46. bind index h noop
  47. bind index,pager d noop #used for dX
  48. bind index,pager i noop #used for goto iXY and i[1-9] in account muttrc (XY = 2 mailbox letters)
  49. bind index,pager M noop #used for CXY, "move" to XY in account muttrc
  50. bind index,pager C noop #used for CXY, "copy" to XY in account muttrc
  51. bind pager,attach,browser,index g noop
  52. # Moving between views the vim way
  53. bind attach,index gg first-entry
  54. bind attach,index G last-entry
  55. bind pager,browser gg top-page
  56. bind pager,browser G bottom-page
  57. bind pager G bottom
  58. bind pager k previous-line
  59. bind pager j next-line
  60. # l gets from index to mail to attachents to system view via mailcap
  61. # h back vim-like (q by mutt)
  62. bind index l display-message
  63. bind browser l select-entry
  64. bind pager l view-attachments
  65. bind attach l view-mailcap
  66. bind attach <return> view-mailcap
  67. bind pager,attach h exit
  68. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  69. # Moving inside view as in vim
  70. bind attach,index,pager,browser \Cd half-down
  71. bind attach,index,pager,browser \Cu half-up
  72. bind attach,browser,pager,index \Cf next-page
  73. bind attach,browser,pager,index \Cb previous-page
  74. bind browser,pager,index \Ce next-line
  75. bind browser,pager,index \Cy previous-line
  76. # and using mouse
  77. bind index \031 previous-undeleted # Mouse wheel
  78. bind index \005 next-undeleted # Mouse wheel
  79. bind pager \031 previous-line # Mouse wheel
  80. bind pager \005 next-line # Mouse wheel
  81. #
  82. # Using other dX and gX keys
  83. bind index gl limit
  84. macro index gL "<limit>all\n" "show all messages (undo limit)"
  85. # Threads
  86. bind browser,pager,index N search-opposite
  87. bind pager,index dT delete-thread
  88. bind pager,index dt delete-subthread
  89. bind pager,index gt next-thread
  90. bind pager,index gT previous-thread
  91. bind index za collapse-thread
  92. bind index zA collapse-all
  93. bind index - collapse-thread
  94. bind index _ collapse-all
  95. # Sidebar (J/K goes to previou/next mail by mutt)
  96. bind index,pager \Ck sidebar-prev
  97. bind index,pager \Cj sidebar-next
  98. bind index,pager \Co sidebar-open
  99. bind index,pager \Cl sidebar-open
  100. bind index,pager \Cp sidebar-prev-new
  101. bind index,pager \Cn sidebar-next-new
  102. bind index,pager B sidebar-toggle-visible
  103. # Edit the vim way
  104. # D, U = delete/undelete by pattern by mutt
  105. bind pager,index dd delete-message #u is undelete by mutt
  106. bind index,pager gr group-reply #R is recall postponed by mutt
  107. bind editor <space> noop
  108. bind editor <Tab> complete-query
  109. bind index,pager V view-raw-message
  110. # Other
  111. bind pager t display-toggle-weed
  112. #
  113. # Macros
  114. macro index \Cr "<tag-pattern>~U<enter>\
  115. <tag-prefix><clear-flag>N<untag-pattern>.<enter>" \
  116. "mark all messages as read"
  117. macro index,pager ga "|abook --add-email\n" 'add sender to abook' #"a" alone, add to alias
  118. macro index S "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >\${XDG_CACHE_HOME:-~/.cache}/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat \${XDG_CACHE_HOME:-~/.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>" \
  119. "show only messages matching a notmuch pattern"
  120. macro pager gu "|urlscan<enter>" "call urlscan to open links"
  121. # =================== shortcuts ==================== #
  122. ## ===================== COLOR ===================== #
  123. # Default index colors
  124. color index yellow default '.*'
  125. color index_author red default '.*'
  126. color index_number blue default
  127. color index_subject cyan default '.*'
  128. # New mail is boldened
  129. color index brightyellow black "~N"
  130. color index_author brightred black "~N"
  131. color index_subject brightcyan black "~N"
  132. # Other colors and aesthetic settings
  133. mono bold bold
  134. mono underline underline
  135. mono indicator reverse
  136. mono error bold
  137. color normal default default
  138. color indicator brightblack white
  139. color sidebar_highlight red default
  140. color sidebar_divider brightblack black
  141. color sidebar_flagged red black
  142. color sidebar_new green black
  143. color normal brightyellow default
  144. color error red default
  145. color tilde black default
  146. color message cyan default
  147. color markers red white
  148. color attachment white default
  149. color search brightmagenta default
  150. color status brightyellow black
  151. color hdrdefault brightgreen default
  152. color quoted green default
  153. color quoted1 blue default
  154. color quoted2 cyan default
  155. color quoted3 yellow default
  156. color quoted4 red default
  157. color quoted5 brightred default
  158. color signature brightgreen default
  159. color bold black default
  160. color underline black default
  161. color normal default default
  162. # Regex highlighting
  163. color header blue default ".*"
  164. color header brightmagenta default "^(From)"
  165. color header brightcyan default "^(Subject)"
  166. color header brightwhite default "^(CC|BCC)"
  167. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  168. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  169. color body green default "\`[^\`]*\`" # Green text between ` and `
  170. color body brightblue default "^# \.*" # Headings as bold blue
  171. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  172. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  173. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  174. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  175. color body brightcyan default "[;:][)(|]" # emoticons
  176. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  177. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  178. color body red default "(BAD signature)"
  179. color body cyan default "(Good signature)"
  180. color body brightblack default "^gpg: Good signature .*"
  181. color body brightyellow default "^gpg: "
  182. color body brightyellow red "^gpg: BAD signature from.*"
  183. mono body bold "^gpg: Good signature"
  184. mono body bold "^gpg: BAD signature from.*"
  185. 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<>\"]"
  186. ## ===================== color ===================== #