/Muttrc

http://github.com/brinkman83/bashrc · #! · 141 lines · 114 code · 27 blank · 0 comment · 0 complexity · 9324496e43257ed94d21f0bf6ba1c14a MD5 · raw file

  1. #
  2. # System configuration file for Mutt
  3. #
  4. # Default list of header fields to weed when displaying.
  5. # Ignore all lines by default...
  6. ignore *
  7. # ... then allow these through.
  8. unignore from: subject to cc date x-mailer x-url user-agent
  9. # Display the fields in this order
  10. hdr_order date from to cc subject
  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. # some people actually like these settings
  17. #set pager_stop
  18. #bind pager <up> previous-line
  19. #bind pager <down> next-line
  20. # Specifies how to sort messages in the index menu.
  21. set sort=threads
  22. # The behavior of this option on the Debian mutt package is
  23. # not the original one because exim4, the default SMTP on Debian
  24. # does not strip bcc headers so this can cause privacy problems;
  25. # see man muttrc for more info
  26. #unset write_bcc
  27. # Postfix and qmail use Delivered-To for detecting loops
  28. unset bounce_delivered
  29. set mixmaster="mixmaster-filter"
  30. # System-wide CA file managed by the ca-certificates package
  31. set ssl_ca_certificates_file="/etc/ssl/certs/ca-certificates.crt"
  32. # imitate the old search-body function
  33. macro index \eb "<search>~b " "search in message bodies"
  34. # simulate the old url menu
  35. macro index,pager,attach,compose \cb "\
  36. <enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
  37. <pipe-message> urlview<Enter>\
  38. <enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
  39. "call urlview to extract URLs out of a message"
  40. # Show documentation when pressing F1
  41. macro generic,pager <F1> "<shell-escape> zcat /usr/share/doc/mutt/manual.txt.gz | sensible-pager<enter>" "show Mutt documentation"
  42. # show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
  43. macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
  44. bind browser y exit
  45. # Use folders which match on \\.gz$ as gzipped folders:
  46. # open-hook \\.gz$ "gzip -cd %f > %t"
  47. # close-hook \\.gz$ "gzip -c %t > %f"
  48. # append-hook \\.gz$ "gzip -c %t >> %f"
  49. # If Mutt is unable to determine your site's domain name correctly, you can
  50. # set the default here. (better: fix /etc/mailname)
  51. #
  52. # set hostname=cs.hmc.edu
  53. # If your sendmail supports the -B8BITMIME flag, enable the following
  54. #
  55. # set use_8bitmime
  56. # Use mime.types to look up handlers for application/octet-stream. Can
  57. # be undone with unmime_lookup.
  58. mime_lookup application/octet-stream
  59. # Upgrade the progress counter every 250ms, good for mutt over SSH
  60. # see http://bugs.debian.org/537746
  61. set time_inc=250
  62. ##
  63. ## *** DEFAULT SETTINGS FOR THE ATTACHMENTS PATCH ***
  64. ##
  65. ##
  66. ## Please see the manual (section "attachments") for detailed
  67. ## documentation of the "attachments" command.
  68. ##
  69. ## Removing a pattern from a list removes that pattern literally. It
  70. ## does not remove any type matching the pattern.
  71. ##
  72. ## attachments +A */.*
  73. ## attachments +A image/jpeg
  74. ## unattachments +A */.*
  75. ##
  76. ## This leaves "attached" image/jpeg files on the allowed attachments
  77. ## list. It does not remove all items, as you might expect, because the
  78. ## second */.* is not a matching expression at this time.
  79. ##
  80. ## Remember: "unattachments" only undoes what "attachments" has done!
  81. ## It does not trigger any matching on actual messages.
  82. ## Qualify any MIME part with an "attachment" disposition, EXCEPT for
  83. ## text/x-vcard and application/pgp parts. (PGP parts are already known
  84. ## to mutt, and can be searched for with ~g, ~G, and ~k.)
  85. ##
  86. ## I've added x-pkcs7 to this, since it functions (for S/MIME)
  87. ## analogously to PGP signature attachments. S/MIME isn't supported
  88. ## in a stock mutt build, but we can still treat it specially here.
  89. ##
  90. attachments +A */.*
  91. attachments -A text/x-vcard application/pgp.*
  92. attachments -A application/x-pkcs7-.*
  93. ## Discount all MIME parts with an "inline" disposition, unless they're
  94. ## text/plain. (Why inline a text/plain part unless it's external to the
  95. ## message flow?)
  96. ##
  97. attachments +I text/plain
  98. ## These two lines make Mutt qualify MIME containers. (So, for example,
  99. ## a message/rfc822 forward will count as an attachment.) The first
  100. ## line is unnecessary if you already have "attach-allow */.*", of
  101. ## course. These are off by default! The MIME elements contained
  102. ## within a message/* or multipart/* are still examined, even if the
  103. ## containers themseves don't qualify.
  104. ##
  105. #attachments +A message/.* multipart/.*
  106. #attachments +I message/.* multipart/.*
  107. ## You probably don't really care to know about deleted attachments.
  108. attachments -A message/external-body
  109. attachments -I message/external-body
  110. # enable mime lookup by extension
  111. mime_lookup application/octet-stream
  112. ##
  113. # See /usr/share/doc/mutt/README.Debian for details.
  114. source /usr/lib/mutt/source-muttrc.d|