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.
 
 
 
 

196 lines
9.7 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 send_charset="us-ascii:utf-8"
  7. set mailcap_path = $HOME/.config/mutt/mailcap:/usr/local/share/mutt-wizard/mailcap:$mailcap_path
  8. set mime_type_query_command = "file --mime-type -b %s"
  9. set date_format="%y/%m/%d %I:%M%p"
  10. set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
  11. set sort = 'reverse-date'
  12. set sort = threads
  13. set smtp_authenticators = 'gssapi:login'
  14. set query_command = "abook --mutt-query '%s'"
  15. set rfc2047_parameters = yes
  16. set sleep_time = 0 # Pause 0 seconds for informational messages
  17. set markers = no # Disables the `+` displayed at line wraps
  18. set mark_old = no # Unread mail stay unread until read
  19. set mime_forward = no # mail body is forwarded as text
  20. set forward_attachments = yes # attachments are forwarded with mail
  21. set wait_key = no # mutt won't ask "press key to continue"
  22. set fast_reply # skip to compose when replying
  23. set fcc_attach # save attachments with the body
  24. set forward_format = "Fwd: %s" # format of subject when forwarding
  25. set forward_quote # include message in forwards
  26. set reverse_name # reply as whomever it was to
  27. set include # include message in replies
  28. set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
  29. auto_view text/html # automatically show html (mailcap uses lynx)
  30. auto_view application/pgp-encrypted
  31. #set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages.
  32. alternative_order text/plain text/enriched text/html
  33. bind index,pager i noop
  34. bind index,pager g noop
  35. bind index \Cf noop
  36. bind index,pager M noop
  37. bind index,pager C noop
  38. # General rebindings
  39. bind index gg first-entry
  40. bind index j next-entry
  41. bind index k previous-entry
  42. bind attach <return> view-mailcap
  43. bind attach l view-mailcap
  44. bind editor <space> noop
  45. bind index G last-entry
  46. bind pager,attach h exit
  47. bind pager j next-line
  48. bind pager k previous-line
  49. bind pager l view-attachments
  50. bind index D delete-message
  51. bind index U undelete-message
  52. bind index L limit
  53. bind index h noop
  54. bind index l display-message
  55. bind index,query <space> tag-entry
  56. #bind browser h goto-parent
  57. macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
  58. bind index,pager H view-raw-message
  59. bind browser l select-entry
  60. bind browser gg top-page
  61. bind browser G bottom-page
  62. bind pager gg top
  63. bind pager G bottom
  64. bind index,pager,browser d half-down
  65. bind index,pager,browser u half-up
  66. bind index,pager S sync-mailbox
  67. bind index,pager R group-reply
  68. bind index \031 previous-undeleted # Mouse wheel
  69. bind index \005 next-undeleted # Mouse wheel
  70. bind pager \031 previous-line # Mouse wheel
  71. bind pager \005 next-line # Mouse wheel
  72. bind editor <Tab> complete-query
  73. macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
  74. macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
  75. macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
  76. macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
  77. macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
  78. macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
  79. macro index,pager gj "<change-folder>=Junk<enter>" "go to junk"
  80. macro index,pager Mj ";<save-message>=Junk<enter>" "move mail to junk"
  81. macro index,pager Cj ";<copy-message>=Junk<enter>" "copy mail to junk"
  82. macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
  83. macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
  84. macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
  85. macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
  86. macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
  87. macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
  88. macro index,pager ga "<change-folder>=Archive<enter>" "go to archive"
  89. macro index,pager Ma ";<save-message>=Archive<enter>" "move mail to archive"
  90. macro index,pager Ca ";<copy-message>=Archive<enter>" "copy mail to archive"
  91. #set crypt_auto_sign = yes
  92. #set crypt_opportunistic_encrypt = yes
  93. #set pgp_self_encrypt = yes
  94. #set pgp_default_key = 'your@gpgemailaddre.ss'
  95. macro index \eg "<enter-command>unset wait_key<enter><shell-escape>gpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; $prefix/libexec/gpg-wks-client --create \\\$eFGPT \\\$eID | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>" "publish GPG key to WKS provider"
  96. macro index \eh "<pipe-message>$prefix/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a $fulladdr<enter>" "confirm GPG publication"
  97. 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"
  98. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  99. macro index O "<shell-escape>mailsync<enter>" "run mailsync to sync all mail"
  100. 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"
  101. macro index A "<limit>all\n" "show all messages (undo limit)"
  102. # Sidebar mappings
  103. set sidebar_visible = yes
  104. set sidebar_width = 20
  105. set sidebar_short_path = yes
  106. set sidebar_next_new_wrap = yes
  107. set mail_check_stats
  108. set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
  109. bind index,pager \Ck sidebar-prev
  110. bind index,pager \Cj sidebar-next
  111. bind index,pager \Co sidebar-open
  112. bind index,pager \Cp sidebar-prev-new
  113. bind index,pager \Cn sidebar-next-new
  114. bind index,pager B sidebar-toggle-visible
  115. # Default index colors:
  116. color index yellow default '.*'
  117. color index_author red default '.*'
  118. color index_number blue default
  119. color index_subject cyan default '.*'
  120. # New mail is boldened:
  121. color index brightyellow black "~N"
  122. color index_author brightred black "~N"
  123. color index_subject brightcyan black "~N"
  124. # Tagged mail is highlighted:
  125. color index brightyellow blue "~T"
  126. color index_author brightred blue "~T"
  127. color index_subject brightcyan blue "~T"
  128. # Flagged mail is highlighted:
  129. color index brightgreen default "~F"
  130. color index_subject brightgreen default "~F"
  131. color index_author brightgreen default "~F"
  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 error red default
  144. color tilde black default
  145. color message cyan default
  146. color markers red white
  147. color attachment white default
  148. color search brightmagenta default
  149. color status brightyellow black
  150. color hdrdefault brightgreen default
  151. color quoted green default
  152. color quoted1 blue default
  153. color quoted2 cyan default
  154. color quoted3 yellow default
  155. color quoted4 red default
  156. color quoted5 brightred default
  157. color signature brightgreen default
  158. color bold black default
  159. color underline black default
  160. # Regex highlighting:
  161. color header brightmagenta default "^From"
  162. color header brightcyan default "^Subject"
  163. color header brightwhite default "^(CC|BCC)"
  164. color header blue default ".*"
  165. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  166. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  167. color body green default "\`[^\`]*\`" # Green text between ` and `
  168. color body brightblue default "^# \.*" # Headings as bold blue
  169. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  170. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  171. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  172. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  173. color body brightcyan default "[;:][)(|]" # emoticons
  174. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  175. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  176. color body red default "(BAD signature)"
  177. color body cyan default "(Good signature)"
  178. color body brightblack default "^gpg: Good signature .*"
  179. color body brightyellow default "^gpg: "
  180. color body brightyellow red "^gpg: BAD signature from.*"
  181. mono body bold "^gpg: Good signature"
  182. mono body bold "^gpg: BAD signature from.*"
  183. 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<>\"]"