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.
 
 
 
 

157 lines
6.7 KiB

  1. # vim: filetype=neomuttrc
  2. # This is the general mutt config which has the settings that all accounts use.
  3. bind index,pager i noop
  4. bind index,pager g noop
  5. bind index \Cf noop
  6. source etc/aliases
  7. source personal.muttrc
  8. set sleep_time = 0
  9. set sort = 'reverse-date'
  10. set editor = $EDITOR
  11. #set copy = no
  12. set timeout = "5"
  13. set mail_check = "10"
  14. set mailcap_path = ~/.config/mutt/etc/mailcap
  15. set date_format="%y/%m/%d %I:%M"
  16. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  17. set markers = no
  18. set mark_old = no
  19. set mime_forward = yes
  20. set smtp_authenticators = 'gssapi:login'
  21. set wait_key = no
  22. auto_view text/html
  23. auto_view application/pgp-encrypted
  24. alternative_order text/plain text/enriched text/html
  25. set rfc2047_parameters = yes
  26. # General remappings
  27. bind editor <space> noop
  28. bind index G last-entry
  29. bind index gg first-entry
  30. bind pager j next-line
  31. bind pager k previous-line
  32. bind browser h goto-parent
  33. bind browser l select-entry
  34. bind pager,browser gg top-page
  35. bind pager,browser G bottom-page
  36. bind index,browser d half-down
  37. bind index,browser u half-up
  38. bind index D delete-message
  39. bind index U undelete-message
  40. bind index,browser F search
  41. bind index,pager R group-reply
  42. bind index \031 previous-undeleted # Mouse wheel
  43. bind index \005 next-undeleted # Mouse wheel
  44. bind pager \031 previous-line # Mouse wheel
  45. bind pager \005 next-line # Mouse wheel
  46. macro index,pager S <sync-mailbox>
  47. set query_command= "abook --mutt-query '%s'"
  48. bind editor <Tab> complete-query
  49. # View attachments properly.
  50. bind attach <return> view-mailcap
  51. set fast_reply # skip to compose when replying
  52. set fcc_attach # save attachments with the body
  53. unset mime_forward # forward attachments as part of body
  54. set forward_format = "Fwd: %s" # format of subject when forwarding
  55. set forward_decode # decode when forwarding
  56. set forward_quote # include message in forwards
  57. set reverse_name # reply as whomever it was to
  58. set include # include message in replies
  59. #Ctrl-R to mark all as read
  60. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  61. #sync email
  62. macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
  63. macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
  64. #copy/move dialogs
  65. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  66. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  67. # Notmuch searching
  68. macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
  69. macro index A "<limit>all\n" "show all messages (undo limit)"
  70. # Sidebar mappings
  71. set sidebar_visible = yes
  72. set sidebar_width = 20
  73. set sidebar_short_path = yes
  74. set sidebar_next_new_wrap = yes
  75. set mail_check_stats
  76. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  77. bind index,pager \Ck sidebar-prev
  78. bind index,pager \Cj sidebar-next
  79. bind index,pager \Co sidebar-open
  80. bind index,pager \Cp sidebar-prev-new
  81. bind index,pager \Cn sidebar-next-new
  82. bind index,pager B sidebar-toggle-visible
  83. # Default index colors:
  84. color index yellow default '.*'
  85. color index_author red default '.*'
  86. color index_number blue default
  87. color index_subject cyan default '.*'
  88. # For new mail:
  89. color index brightyellow black "~N"
  90. color index_author brightred black "~N"
  91. color index_subject brightcyan black "~N"
  92. # Header colors:
  93. color header blue default ".*"
  94. color header brightmagenta default "^(From)"
  95. color header brightcyan default "^(Subject)"
  96. color header brightwhite default "^(CC|BCC)"
  97. mono bold bold
  98. mono underline underline
  99. mono indicator reverse
  100. mono error bold
  101. color normal default default
  102. color indicator brightblack white
  103. color sidebar_highlight red default
  104. color sidebar_divider brightblack black
  105. color sidebar_flagged red black
  106. color sidebar_new green black
  107. color normal brightyellow default
  108. color error red default
  109. color tilde black default
  110. color message cyan default
  111. color markers red white
  112. color attachment white default
  113. color search brightmagenta default
  114. color status brightyellow black
  115. color hdrdefault brightgreen default
  116. color quoted green default
  117. color quoted1 blue default
  118. color quoted2 cyan default
  119. color quoted3 yellow default
  120. color quoted4 red default
  121. color quoted5 brightred default
  122. color signature brightgreen default
  123. color bold black default
  124. color underline black default
  125. color normal default default
  126. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  127. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  128. color body green default "\`[^\`]*\`" # Green text between ` and `
  129. color body brightblue default "^# \.*" # Headings as bold blue
  130. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  131. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  132. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  133. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  134. color body brightcyan default "[;:][)(|]" # emoticons
  135. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  136. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  137. color body red default "(BAD signature)"
  138. color body cyan default "(Good signature)"
  139. color body brightblack default "^gpg: Good signature .*"
  140. color body brightyellow default "^gpg: "
  141. color body brightyellow red "^gpg: BAD signature from.*"
  142. mono body bold "^gpg: Good signature"
  143. mono body bold "^gpg: BAD signature from.*"
  144. 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<>\"]"