Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

muttrc 6.5 KiB

6 år sedan
6 år sedan
6 år sedan
6 år sedan
6 år sedan
5 år sedan
6 år sedan
6 år sedan
6 år sedan
6 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 personal.muttrc
  7. set sleep_time = 0
  8. set sort = 'reverse-date'
  9. set editor = $EDITOR
  10. #set copy = no
  11. set timeout = "5"
  12. set mail_check = "10"
  13. set mailcap_path = ~/.config/mutt/bin/mailcap
  14. set date_format="%y/%m/%d %I:%M"
  15. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  16. set markers = no
  17. set mark_old = no
  18. set mime_forward = yes
  19. set smtp_authenticators = 'gssapi:login'
  20. set wait_key = no
  21. auto_view text/html
  22. auto_view application/pgp-encrypted
  23. alternative_order text/plain text/enriched text/html
  24. set rfc2047_parameters = yes
  25. # General remappings
  26. bind editor <space> noop
  27. bind index G last-entry
  28. bind index gg first-entry
  29. bind pager j next-line
  30. bind pager k previous-line
  31. bind browser h goto-parent
  32. bind browser l select-entry
  33. bind pager,browser gg top-page
  34. bind pager,browser G bottom-page
  35. bind index,browser d half-down
  36. bind index,browser u half-up
  37. bind index D delete-message
  38. bind index U undelete-message
  39. bind index,browser F search
  40. bind index,pager R group-reply
  41. bind index \031 previous-undeleted # Mouse wheel
  42. bind index \005 next-undeleted # Mouse wheel
  43. bind pager \031 previous-line # Mouse wheel
  44. bind pager \005 next-line # Mouse wheel
  45. macro index,pager a "|abook --add-email\n" 'add sender to abook'
  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/bin/mailsync<enter>" "run offlineimap to sync all mail"
  63. macro index o "<shell-escape>$HOME/.config/mutt/bin/mailsync -qf INBOX<enter>" "run offlineimap to sync inbox"
  64. # Notmuch searching
  65. 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"
  66. macro index A "<limit>all\n" "show all messages (undo limit)"
  67. # Sidebar mappings
  68. set sidebar_visible = yes
  69. set sidebar_width = 20
  70. set sidebar_short_path = yes
  71. set sidebar_next_new_wrap = yes
  72. set mail_check_stats
  73. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  74. bind index,pager \Ck sidebar-prev
  75. bind index,pager \Cj sidebar-next
  76. bind index,pager \Co sidebar-open
  77. bind index,pager \Cp sidebar-prev-new
  78. bind index,pager \Cn sidebar-next-new
  79. bind index,pager B sidebar-toggle-visible
  80. # Default index colors:
  81. color index yellow default '.*'
  82. color index_author red default '.*'
  83. color index_number blue default
  84. color index_subject cyan default '.*'
  85. # For new mail:
  86. color index brightyellow black "~N"
  87. color index_author brightred black "~N"
  88. color index_subject brightcyan black "~N"
  89. # Header colors:
  90. color header blue default ".*"
  91. color header brightmagenta default "^(From)"
  92. color header brightcyan default "^(Subject)"
  93. color header brightwhite default "^(CC|BCC)"
  94. mono bold bold
  95. mono underline underline
  96. mono indicator reverse
  97. mono error bold
  98. color normal default default
  99. color indicator brightblack white
  100. color sidebar_highlight red default
  101. color sidebar_divider brightblack black
  102. color sidebar_flagged red black
  103. color sidebar_new green black
  104. color normal brightyellow default
  105. color error red default
  106. color tilde black default
  107. color message cyan default
  108. color markers red white
  109. color attachment white default
  110. color search brightmagenta default
  111. color status brightyellow black
  112. color hdrdefault brightgreen default
  113. color quoted green default
  114. color quoted1 blue default
  115. color quoted2 cyan default
  116. color quoted3 yellow default
  117. color quoted4 red default
  118. color quoted5 brightred default
  119. color signature brightgreen default
  120. color bold black default
  121. color underline black default
  122. color normal default default
  123. color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
  124. color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
  125. color body green default "\`[^\`]*\`" # Green text between ` and `
  126. color body brightblue default "^# \.*" # Headings as bold blue
  127. color body brightcyan default "^## \.*" # Subheadings as bold cyan
  128. color body brightgreen default "^### \.*" # Subsubheadings as bold green
  129. color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
  130. color body brightcyan default "[;:][-o][)/(|]" # emoticons
  131. color body brightcyan default "[;:][)(|]" # emoticons
  132. color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  133. color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  134. color body red default "(BAD signature)"
  135. color body cyan default "(Good signature)"
  136. color body brightblack default "^gpg: Good signature .*"
  137. color body brightyellow default "^gpg: "
  138. color body brightyellow red "^gpg: BAD signature from.*"
  139. mono body bold "^gpg: Good signature"
  140. mono body bold "^gpg: BAD signature from.*"
  141. 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<>\"]"