PageRenderTime 171ms CodeModel.GetById 157ms app.highlight 11ms RepoModel.GetById 1ms app.codeStats 0ms

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