您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

6 年前
6 年前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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/muttcol
  7. source etc/aliases
  8. source personal.muttrc
  9. set sleep_time = 0
  10. set sort = 'reverse-date'
  11. set editor = $EDITOR
  12. #set copy = no
  13. set timeout = "5"
  14. set mail_check = "10"
  15. set mailcap_path = ~/.config/mutt/etc/mailcap
  16. set date_format="%y/%m/%d %I:%M"
  17. set index_format="%2C %zs %?X?A& ? %D %-15.15F %s (%-4.4c)"
  18. set markers = no
  19. set mark_old = no
  20. set mime_forward = yes
  21. set smtp_authenticators = 'gssapi:login'
  22. set wait_key = no
  23. auto_view text/html
  24. auto_view application/pgp-encrypted
  25. alternative_order text/plain text/enriched text/html
  26. set rfc2047_parameters = yes
  27. # General remappings
  28. bind editor <space> noop
  29. bind index G last-entry
  30. bind index gg first-entry
  31. bind pager j next-line
  32. bind pager k previous-line
  33. bind browser h goto-parent
  34. bind browser l select-entry
  35. bind pager,browser gg top-page
  36. bind pager,browser G bottom-page
  37. bind index,browser d half-down
  38. bind index,browser u half-up
  39. bind index D delete-message
  40. bind index U undelete-message
  41. bind index,browser F search
  42. bind index,pager R group-reply
  43. bind index \031 previous-undeleted # Mouse wheel
  44. bind index \005 next-undeleted # Mouse wheel
  45. bind pager \031 previous-line # Mouse wheel
  46. bind pager \005 next-line # Mouse wheel
  47. macro index,pager S <sync-mailbox>
  48. macro index,pager \Cu "|urlscan -r 'setsid $BROWSER \"{}\"'"\n
  49. macro index,pager ,, "|urlscan -r 'setsid $BROWSER \"{}\"'"\n
  50. set query_command= "abook --mutt-query '%s'"
  51. bind editor <Tab> complete-query
  52. # View attachments properly.
  53. bind attach <return> view-mailcap
  54. set fast_reply # skip to compose when replying
  55. set fcc_attach # save attachments with the body
  56. unset mime_forward # forward attachments as part of body
  57. set forward_format = "Fwd: %s" # format of subject when forwarding
  58. set forward_decode # decode when forwarding
  59. set forward_quote # include message in forwards
  60. set reverse_name # reply as whomever it was to
  61. set include # include message in replies
  62. #Ctrl-R to mark all as read
  63. macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
  64. #sync email
  65. macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
  66. macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
  67. #copy/move dialogs
  68. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  69. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  70. # Notmuch searching
  71. 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"
  72. macro index A "<limit>all\n" "show all messages (undo limit)"
  73. # Sidebar mappings
  74. set sidebar_visible = yes
  75. set sidebar_width = 20
  76. set sidebar_short_path = yes
  77. set sidebar_next_new_wrap = yes
  78. set mail_check_stats
  79. set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
  80. bind index,pager \Ck sidebar-prev
  81. bind index,pager \Cj sidebar-next
  82. bind index,pager \Co sidebar-open
  83. bind index,pager \Cp sidebar-prev-new
  84. bind index,pager \Cn sidebar-next-new
  85. bind index,pager B sidebar-toggle-visible