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.
 
 
 
 

159 lines
6.8 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. macro index,pager \Cu "|urlscan -r 'setsid $BROWSER \"{}\"'"\n
  48. macro index,pager ,, "|urlscan -r 'setsid $BROWSER \"{}\"'"\n
  49. set query_command= "abook --mutt-query '%s'"
  50. bind editor <Tab> complete-query
  51. # View attachments properly.
  52. bind attach <return> view-mailcap
  53. set fast_reply # skip to compose when replying
  54. set fcc_attach # save attachments with the body
  55. unset mime_forward # forward attachments as part of body
  56. set forward_format = "Fwd: %s" # format of subject when forwarding
  57. set forward_decode # decode when forwarding
  58. set forward_quote # include message in forwards
  59. set reverse_name # reply as whomever it was to
  60. set include # include message in replies
  61. #Ctrl-R to mark all as read
  62. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  63. #sync email
  64. macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
  65. macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
  66. #copy/move dialogs
  67. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  68. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  69. # Notmuch searching
  70. 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"
  71. macro index A "<limit>all\n" "show all messages (undo limit)"
  72. # Sidebar mappings
  73. set sidebar_visible = yes
  74. set sidebar_width = 20
  75. set sidebar_short_path = yes
  76. set sidebar_next_new_wrap = yes
  77. set mail_check_stats
  78. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  79. bind index,pager \Ck sidebar-prev
  80. bind index,pager \Cj sidebar-next
  81. bind index,pager \Co sidebar-open
  82. bind index,pager \Cp sidebar-prev-new
  83. bind index,pager \Cn sidebar-next-new
  84. bind index,pager B sidebar-toggle-visible
  85. # Default index colors:
  86. color index yellow default '.*'
  87. color index_author red default '.*'
  88. color index_number blue default
  89. color index_subject cyan default '.*'
  90. # For new mail:
  91. color index brightyellow black "~N"
  92. color index_author brightred black "~N"
  93. color index_subject brightcyan black "~N"
  94. # Header colors:
  95. color header blue default ".*"
  96. color header brightmagenta default "^(From)"
  97. color header brightcyan default "^(Subject)"
  98. color header brightwhite default "^(CC|BCC)"
  99. mono bold bold
  100. mono underline underline
  101. mono indicator reverse
  102. mono error bold
  103. color normal default default
  104. color indicator brightblack white
  105. color sidebar_highlight red default
  106. color sidebar_divider brightblack black
  107. color sidebar_flagged red black
  108. color sidebar_new green black
  109. color normal brightyellow default
  110. color error red default
  111. color tilde black default
  112. color message cyan default
  113. color markers red white
  114. color attachment white default
  115. color search brightmagenta default
  116. color status brightyellow black
  117. color hdrdefault brightgreen default
  118. color quoted green default
  119. color quoted1 blue default
  120. color quoted2 cyan default
  121. color quoted3 yellow default
  122. color quoted4 red default
  123. color quoted5 brightred default
  124. color signature brightgreen default
  125. color bold black default
  126. color underline black default
  127. color normal default default
  128. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  129. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  130. color body green default "\`[^\`]*\`" # Green text between ` and `
  131. color body brightblue default "^# \.*" # Headings as bold blue
  132. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  133. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  134. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  135. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  136. color body brightcyan default "[;:][)(|]" # emoticons
  137. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  138. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  139. color body red default "(BAD signature)"
  140. color body cyan default "(Good signature)"
  141. color body brightblack default "^gpg: Good signature .*"
  142. color body brightyellow default "^gpg: "
  143. color body brightyellow red "^gpg: BAD signature from.*"
  144. mono body bold "^gpg: Good signature"
  145. mono body bold "^gpg: BAD signature from.*"
  146. 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<>\"]"