.muttrc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #
  2. # System configuration file for Mutt
  3. #
  4. # default list of header fields to weed when displaying
  5. #
  6. ignore "from " received content- mime-version status x-status message-id
  7. ignore sender references return-path lines
  8. ignore date delivered-to precedence errors-to in-reply-to user-agent
  9. ignore x-loop x-sender x-mailer x-msmail-priority x-mimeole x-priority
  10. ignore x-accept-language x-authentication-warning
  11. # emacs-like bindings
  12. bind editor "\e<delete>" kill-word
  13. bind editor "\e<backspace>" kill-word
  14. # map delete-char to a sane value
  15. bind editor <delete> delete-char
  16. # don't add the hostname to the From header
  17. unset use_domain
  18. # don't generate a From header
  19. unset use_from
  20. # Specifies how to sort messages in the index menu.
  21. set sort=threads
  22. # Exim does not remove Bcc headers
  23. unset write_bcc
  24. # Postfix and qmail use Delivered-To for detecting loops
  25. unset bounce_delivered
  26. # imitate the old search-body function
  27. macro index \eb '/~b ' 'search in message bodies'
  28. # simulate the old url menu
  29. macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
  30. macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
  31. # Show documentation when pressing F1
  32. macro generic <f1> "!zless /usr/share/doc/mutt/manual.txt.gz\n" "Show Mutt documentation"
  33. macro index <f1> "!zless /usr/share/doc/mutt/manual.txt.gz\n" "Show Mutt documentation"
  34. macro pager <f1> "!zless /usr/share/doc/mutt/manual.txt.gz\n" "Show Mutt documentation"
  35. # Use folders which match on \\.gz$ as gzipped folders:
  36. open-hook \\.gz$ "gzip -cd %f > %t"
  37. close-hook \\.gz$ "gzip -c %t > %f"
  38. append-hook \\.gz$ "gzip -c %t >> %f"
  39. # Use folders which match on \\.xz$ as xz compressed folders:
  40. open-hook \\.xz$ "xz -cd %f > %t"
  41. close-hook \\.xz$ "xz -c %t > %f"
  42. append-hook \\.xz$ "xz -c %t >> %f"
  43. # colors
  44. color normal white black
  45. color attachment brightyellow black
  46. color hdrdefault cyan black
  47. color indicator black cyan
  48. color markers brightred black
  49. color quoted green black
  50. color signature cyan black
  51. color status brightgreen blue
  52. color tilde blue black
  53. color tree red black
  54. # aliases for broken MUAs
  55. charset-hook windows-1250 CP1250
  56. charset-hook windows-1251 CP1251
  57. charset-hook windows-1252 CP1252
  58. charset-hook windows-1253 CP1253
  59. charset-hook windows-1254 CP1254
  60. charset-hook windows-1255 CP1255
  61. charset-hook windows-1256 CP1256
  62. charset-hook windows-1257 CP1257
  63. charset-hook windows-1258 CP1258
  64. ##
  65. ## More settings
  66. ##
  67. set ispell=ispell
  68. # GnuPG configuration
  69. set pgp_decode_command="/usr/bin/gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
  70. set pgp_verify_command="/usr/bin/gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
  71. set pgp_decrypt_command="/usr/bin/gpg --status-fd=2 --passphrase-fd 0 --no-verbose --quiet --batch --output - %f"
  72. set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
  73. set pgp_clearsign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
  74. set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
  75. set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
  76. set pgp_import_command="/usr/bin/gpg --no-verbose --import -v %f"
  77. set pgp_export_command="/usr/bin/gpg --no-verbose --export --armor %r"
  78. set pgp_verify_key_command="/usr/bin/gpg --verbose --batch --fingerprint --check-sigs %r"
  79. set pgp_list_pubring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
  80. set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
  81. set pgp_good_sign="^\\[GNUPG:\\] VALIDSIG"
  82. set nomove
  83. bind pager <up> previous-line
  84. bind pager <down> next-line
  85. bind index <up> previous-entry
  86. bind index <down> next-entry
  87. bind index <left> previous-entry
  88. bind index <right> next-entry
  89. bind pager <left> previous-entry
  90. bind pager <right> next-entry
  91. bind pager $ bottom
  92. bind index <tab> next-unread
  93. bind index \c? search-reverse
  94. bind index \c\\ search-opposite
  95. set edit_hdrs
  96. set xterm_set_titles
  97. ignore *
  98. unignore date from to cc subject x-mailer resent-from reply-to mail-followup-to
  99. set index_format="%4C %Z %(%b%d %H) %-15.15L (%?l?%4l&%4c?) %s"
  100. set folder=~/mail
  101. unset confirmappend
  102. my_hdr From: Archive Administrator <ftpmaster@debian.org>
  103. macro index s <save-message>=
  104. set tmpdir="/tmp"
  105. macro index s <save-message>=
  106. macro index c <change-folder>=
  107. macro pager s <save-message>=
  108. macro pager c <change-folder>=
  109. set index_format="%4C %Z %(%b%d %H) %-15.15L (%?l?%4l&%4c?) %s"
  110. set delete=yes
  111. unset confirmappend
  112. set implicit_autoview
  113. auto_view text/html
  114. set pager_stop
  115. set wrap_search # Wrap search to top/bottom.
  116. set smart_wrap # wrap long lines at word boundary.
  117. set tilde # Internal Pager: ~~~~ at and of message?
  118. set pager_context=3
  119. set pager_index_lines=9 # number of lines to see from the index
  120. set pgp_timeout=60 # number of seconds to cache passphrase
  121. set mail_check=1
  122. set timeout=1
  123. set beep
  124. set beep_new
  125. set fast_reply
  126. set metoo