Advertisement
Guest User

Untitled

a guest
Jun 15th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. #
  2. # System configuration file for Mutt
  3. #
  4.  
  5. # default list of header fields to weed when displaying
  6. #
  7. ignore "from " received content- mime-version status x-status message-id
  8. ignore sender references return-path lines
  9. ignore date delivered-to precedence errors-to in-reply-to user-agent
  10. ignore x-loop x-sender x-mailer x-msmail-priority x-mimeole x-ms- x-priority
  11. ignore x-accept-language x-authentication-warning thread- priority importance
  12. ignore x-original-to domainkey-signature dkim-signature
  13.  
  14. # emacs-like bindings
  15. bind editor "\e<delete>" kill-word
  16. bind editor "\e<backspace>" kill-word
  17.  
  18. # map delete-char to a sane value
  19. bind editor <delete> delete-char
  20.  
  21. # some people actually like these settings
  22. #set pager_stop
  23. #bind pager <up> previous-line
  24. #bind pager <down> next-line
  25.  
  26. # Specifies how to sort messages in the index menu.
  27. set sort=threads
  28.  
  29. # Uncomment if your MTA does not strip Bcc: headers.
  30. # (exim4 and postfix strip them, exim(3) does not.)
  31. #unset write_bcc
  32. # Postfix and qmail use Delivered-To for detecting loops
  33. unset bounce_delivered
  34.  
  35. set mixmaster="mixmaster-filter"
  36.  
  37. # System-wide CA file managed by the ca-certificates package
  38. set ssl_ca_certificates_file="/etc/ssl/certs/ca-certificates.crt"
  39.  
  40. # imitate the old search-body function
  41. macro index \eb "<search>~b " "search in message bodies"
  42.  
  43. # simulate the old url menu
  44. macro index,pager,attach,compose \cb "\
  45. <enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
  46. <pipe-message> urlview<Enter>\
  47. <enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
  48. "call urlview to extract URLs out of a message"
  49.  
  50. # Show documentation when pressing F1
  51. macro generic,pager <F1> "<shell-escape> zcat /usr/share/doc/mutt/manual.txt.gz | sensible-pager<enter>" "show Mutt documentation"
  52.  
  53. # show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
  54. macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
  55. bind browser y exit
  56.  
  57. # Use folders which match on \\.gz$ as gzipped folders:
  58. # open-hook \\.gz$ "gzip -cd %f > %t"
  59. # close-hook \\.gz$ "gzip -c %t > %f"
  60. # append-hook \\.gz$ "gzip -c %t >> %f"
  61.  
  62. # If Mutt is unable to determine your site's domain name correctly, you can
  63. # set the default here. (better: fix /etc/mailname)
  64. #
  65. # set hostname=cs.hmc.edu
  66.  
  67. # If your sendmail supports the -B8BITMIME flag, enable the following
  68. #
  69. # set use_8bitmime
  70.  
  71. ##
  72. ## *** DEFAULT SETTINGS FOR THE ATTACHMENTS PATCH ***
  73. ##
  74.  
  75. ##
  76. ## Please see the manual (section "attachments") for detailed
  77. ## documentation of the "attachments" command.
  78. ##
  79. ## Removing a pattern from a list removes that pattern literally. It
  80. ## does not remove any type matching the pattern.
  81. ##
  82. ## attachments +A */.*
  83. ## attachments +A image/jpeg
  84. ## unattachments +A */.*
  85. ##
  86. ## This leaves "attached" image/jpeg files on the allowed attachments
  87. ## list. It does not remove all items, as you might expect, because the
  88. ## second */.* is not a matching expression at this time.
  89. ##
  90. ## Remember: "unattachments" only undoes what "attachments" has done!
  91. ## It does not trigger any matching on actual messages.
  92.  
  93. ## Qualify any MIME part with an "attachment" disposition, EXCEPT for
  94. ## text/x-vcard and application/pgp parts. (PGP parts are already known
  95. ## to mutt, and can be searched for with ~g, ~G, and ~k.)
  96. ##
  97. ## I've added x-pkcs7 to this, since it functions (for S/MIME)
  98. ## analogously to PGP signature attachments. S/MIME isn't supported
  99. ## in a stock mutt build, but we can still treat it specially here.
  100. ##
  101. attachments +A */.*
  102. attachments -A text/x-vcard application/pgp.*
  103. attachments -A application/x-pkcs7-.*
  104.  
  105. ## Discount all MIME parts with an "inline" disposition, unless they're
  106. ## text/plain. (Why inline a text/plain part unless it's external to the
  107. ## message flow?)
  108. ##
  109. attachments +I text/plain
  110.  
  111. ## These two lines make Mutt qualify MIME containers. (So, for example,
  112. ## a message/rfc822 forward will count as an attachment.) The first
  113. ## line is unnecessary if you already have "attach-allow */.*", of
  114. ## course. These are off by default! The MIME elements contained
  115. ## within a message/* or multipart/* are still examined, even if the
  116. ## containers themseves don't qualify.
  117. ##
  118. #attachments +A message/.* multipart/.*
  119. #attachments +I message/.* multipart/.*
  120.  
  121. ## You probably don't really care to know about deleted attachments.
  122. attachments -A message/external-body
  123. attachments -I message/external-body
  124.  
  125. # enable mime lookup by extension
  126. mime_lookup application/octet-stream
  127.  
  128. ##
  129. # See /usr/share/doc/mutt/README.Debian for details.
  130. source /usr/lib/mutt/source-muttrc.d|
  131.  
  132. ## added following 2010-05-03 per FOSSCast on Mutt
  133.  
  134. #set imap_user = 'your_account@gmail.com'
  135. #set imap_pass = 'your_gmail_password'
  136. #set spoolfile = imaps://imap.gmail.com:993/INBOX
  137. #set folder = imaps://imap.gmail.com:993
  138. #set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
  139. #set header_cache="~/.mutt/cache/headers"
  140. #set message_cachedir="~/.mutt/cache/bodies"
  141. #set certificate_file="~/.mutt/certificates"
  142. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement