X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/eb458ce8c75b5aed3835bebfc17640ec0946ff16..15949d808675581d0d7087870b7d6b3701807bd9:/.mutt/muttrc diff --git a/.mutt/muttrc b/.mutt/muttrc index fd09d3d..8ae6d9e 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -1,7 +1,39 @@ # from /usr/share/doc/mutt/examples/Muttrc.gz -set my_confdir="~/.mutt" +set my_confdir="$HOME/.mutt" +# set abort_noattach=no +# +# Name: abort_noattach +# Type: quadoption +# Default: no +# +# +# When the body of the message matches $abort_noattach_regexp and +# there are no attachments, this quadoption controls whether to +# abort sending the message. +# +set abort_noattach=ask-yes +# +# set abort_noattach_regexp="attach" +# +# Name: abort_noattach_regexp +# Type: regular expression +# Default: "attach" +# +# +# Specifies a regular expression to match against the body of the +# message, to determine if an attachment was mentioned but +# mistakenly forgotten. If it matches, $abort_noattach will be +# consulted to determine if message sending will be aborted. +# +# Like other regular expressions in Mutt, the search is case +# sensitive if the pattern contains at least one upper case letter, +# and case insensitive otherwise. +# +set abort_noattach_regexp='attach|beigefügt|angehängt|an(hang|lage)' +#'attach(ing|ed|ment)?|included\W+(with|in)\W+th(is|e\W+(curr|pres)ent)\W+mail|an(geh(ä|=E4|=C3=A4)ngt|h(ä|=E4|=C3=A4)ngsel|bei)|bei(gef(ü|=FC|=C3=BC)gt|lage)|(im|siehe)\W+(anhang|beilage)|attach(e|er|(é|=E9|=C3=A9)e?s?|ement|ant)' +# # set abort_nosubject=ask-yes # # Name: abort_nosubject @@ -205,6 +237,10 @@ set my_confdir="~/.mutt" # (please see the ``attachments'' section for possible speed effects) # %>X right justify the rest of the string and pad with character "X" # %|X pad to the end of the line with character "X" +# %*X soft-fill with character "X" as pad +# +# +# For an explanation of `soft-fill', see the ``$index_format'' documentation. # # # set attach_sep="\n" @@ -243,7 +279,7 @@ set my_confdir="~/.mutt" # in a reply. For a full listing of defined printf()-like sequences see # the section on ``$index_format''. # -set attribution="also sprach %n <%a> [%[%Y.%m.%d.%H%M %z]]:" +set attribution="Quoting %n, who wrote on %{%Y-%m-%d} at %{%H:%M %z}:" # # set autoedit=no # @@ -357,6 +393,7 @@ set beep=no # # # Character set your terminal uses to display and enter textual data. +# It is also the fallback for $send_charset. # # # set check_new=yes @@ -647,9 +684,6 @@ set delete=yes # Default: "" # # -# Note: you should not enable this unless you are using Sendmail -# 8.8.x or greater. -# # This variable sets the request for when notification is returned. The # string consists of a comma separated list (no spaces!) of one or more # of the following: never, to never request notification, @@ -659,6 +693,12 @@ set delete=yes # # Example: set dsn_notify="failure,delay" # +# Note: when using $sendmail for delivery, you should not enable +# this unless you are either using Sendmail 8.8.x or greater or a MTA +# providing a sendmail(1)-compatible interface supporting the -N option +# for DSN. For SMTP delivery, it depends on the server whether DSN is +# supported or not. +# # # set dsn_return="" # @@ -667,15 +707,18 @@ set delete=yes # Default: "" # # -# Note: you should not enable this unless you are using Sendmail -# 8.8.x or greater. -# # This variable controls how much of your message is returned in DSN # messages. It may be set to either hdrs to return just the # message header, or full to return the full message. # # Example: set dsn_return=hdrs # +# Note: when using $sendmail for delivery, you should not enable +# this unless you are either using Sendmail 8.8.x or greater or a MTA +# providing a sendmail(1)-compatible interface supporting the -R option +# for DSN. For SMTP delivery, it depends on the server whether DSN is +# supported or not. +# # # set duplicate_threads=yes # @@ -700,6 +743,9 @@ set delete=yes # This option allows you to edit the header of your outgoing messages # along with the body of your message. # +# Note that changes made to the References: and Date: headers are +# ignored for interoperability reasons. +# set edit_headers=yes # # set editor="" @@ -775,7 +821,7 @@ set fast_reply=yes # This variable controls whether or not attachments on outgoing messages # are saved along with the main body of your message. # -set fcc_attach=no +set fcc_attach=yes # # set fcc_clear=no # @@ -829,6 +875,10 @@ set folder="~/mail" # %u owner name (or numeric uid, if missing) # %>X right justify the rest of the string and pad with character "X" # %|X pad to the end of the line with character "X" +# %*X soft-fill with character "X" as pad +# +# +# For an explanation of `soft-fill', see the ``$index_format'' documentation. # # # set followup_to=yes @@ -837,6 +887,7 @@ set folder="~/mail" # Type: boolean # Default: yes # +# ## ENABLED BY A DEFAULT HOOK # # Controls whether or not the Mail-Followup-To header field is # generated when sending mail. When set, Mutt will generate this @@ -904,6 +955,7 @@ set folder="~/mail" # This variable controls the default subject when forwarding a message. # It uses the same format sequences as the ``$index_format'' variable. # +set forward_format="(fwd) %s" # # set forward_quote=no # @@ -930,7 +982,7 @@ set folder="~/mail" # is unset. # # Defaults to the contents of the environment variable EMAIL. -# +# set from='martin f krafft ' # # set gecos_mask="^[^,]*" @@ -1107,9 +1159,20 @@ set history_file="~/.var/mutt/history" # Default: "" # # -# Specifies the hostname to use after the ``@'' in local e-mail -# addresses. This overrides the compile time definition obtained from -# /etc/resolv.conf. +# Specifies the fully-qualified hostname of the system mutt is running on +# containing the host's name and the DNS domain it belongs to. It is used +# as the domain part (after ``@'') for local email addresses as well as +# Message-Id headers. +# +# Its value is determined at startup as follows: If the node's name +# as returned by the uname(3) function contains the hostname and the +# domain, these are used to construct $hostname. If there is no +# domain part returned, Mutt will look for a ``domain'' or ``search'' +# line in /etc/resolv.conf to determine the domain. Optionally, Mutt +# can be compiled with a fixed domain name in which case a detected +# one is not used. +# +# Also see ``$use_domain'' and ``$hidden_host''. # # Note: On Debian systems, the default for this variable is obtained # from /etc/mailname when Mutt starts. @@ -1135,7 +1198,8 @@ set history_file="~/.var/mutt/history" # # # Affects the behaviour of the reply function when replying to -# messages from mailing lists. When set, if the ``Reply-To:'' field is +# messages from mailing lists (as defined by the ``subscribe'' or +# ``lists'' commands). When set, if the ``Reply-To:'' field is # set to the same value as the ``To:'' field, Mutt assumes that the # ``Reply-To:'' field was set by the mailing list to automate responses # to the list, and will ignore this field. To direct a response to the @@ -1340,7 +1404,7 @@ set ignore_list_reply_to=yes # use the viewer defined in that entry to convert the body part to text # form. # -set implicit_autoview=yes +set implicit_autoview=no # # set include=ask-yes # @@ -1376,6 +1440,9 @@ set include=yes # message to which you are replying. You are strongly encouraged not to # change this value, as it tends to agitate the more fanatical netizens. # +# This option is a format string, please see the description of +# ``$index_format'' for supported printf()-style sequences. +# # # set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s" # @@ -1403,7 +1470,7 @@ set include=yes # ``date_format'' converted to the local time zone # %e current message number in thread # %E number of messages in current thread -# %f entire From: line (address + real name) +# %f sender (address + real name), either From: or Return-Path: # %F author name, or recipient name if the message is from you # %H spam attribute(s) of this message # %i message-id of the current message @@ -1445,11 +1512,23 @@ set include=yes # function ``strftime''; a leading bang disables locales. # %>X right justify the rest of the string and pad with character "X" # %|X pad to the end of the line with character "X" +# %*X soft-fill with character "X" as pad +# # +# `Soft-fill' deserves some explanation. Normal right-justification +# will print everything to the left of the %>, displaying padding and +# the whatever lies to the right only if there's room. By contrast, +# soft-fill gives priority to the right-hand side, guaranteeing space +# to display it and showing padding only if there's still room. If +# necessary, soft-fill will eat text leftwards to make room for +# rightward text. +# +# Note that these expandos are supported in +# ``save-hook'', ``fcc-hook'' and ``fcc-save-hook'', too. # # See also: ``$to_chars''. # -set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %?H?[%H] ?%s" +#set index_format="%4C %Z %{%b %d} %-15.15F %4c %?H?[%H] ?%s" ## DEFINED BY A DEFAULT HOOK # # set ispell="ispell" # @@ -1492,7 +1571,7 @@ set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %?H?[%H] ?%s" # # # This variable configures how often (in seconds) mutt should look for -# new mail. +# new mail. Also see the ``$timeout'' variable. # # # set mailcap_path="" @@ -1505,6 +1584,7 @@ set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %?H?[%H] ?%s" # This variable specifies which files to consult when attempting to # display MIME bodies not directly supported by Mutt. # +set mailcap_path="$my_confdir/mailcap.icalendar:$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump" # # set mailcap_sanitize=yes # @@ -1521,21 +1601,6 @@ set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %?H?[%H] ?%s" # DOING! # # -# set maildir_mtime=no -# -# Name: maildir_mtime -# Type: boolean -# Default: no -# -# -# If set, the sort-by-date option in the browser will sort maildirs -# smartly, not using the mtime of the maildir itself but that of the -# newest message in the new subdirectory, making the sorting by -# reverse date much more useful. People with maildirs over NFS may -# wish to leave this option unset. -# -set maildir_mtime=yes -# # set header_cache="" # # Name: header_cache @@ -1550,6 +1615,21 @@ set maildir_mtime=yes # caching will be used. # set header_cache="~/.var/mutt/header_cache" +# +# set header_cache_compress=yes +# +# Name: header_cache_compress +# Type: boolean +# Default: yes +# +# When mutt is compiled with qdbm or tokyocabinet as header cache backend, +# this option determines whether the database will be compressed. Compression +# results in database files roughly being one fifth of the usual diskspace, +# but the uncompression can result in a slower opening of cached folder(s) +# which in general is still much faster than opening non header cached +# folders. +# +set header_cache_compress=no # # set maildir_header_cache_verify=yes # @@ -1564,20 +1644,6 @@ set header_cache="~/.var/mutt/header_cache" # set maildir_header_cache_verify=no # -# set header_cache_pagesize="16384" -# -# Name: header_cache_pagesize -# Type: string -# Default: "16384" -# -# -# When mutt is compiled with either gdbm or bdb4 as the header cache backend, -# this option changes the database page size. Too large or too small -# values can waste space, memory, or CPU time. The default should be more -# or less optimal for most use cases. -# -set header_cache_pagesize=32768 -# # set maildir_trash=no # # Name: maildir_trash @@ -1814,7 +1880,7 @@ set mime_forward=ask-yes # This option sets the filename used for signature parts in PGP/MIME # signed messages. # -set pgp_mime_signature_filename="digital_signature_gpg.asc" +#set pgp_mime_signature_filename="digital_signature_gpg.asc" # # set pgp_mime_signature_description="Digital signature" # @@ -1822,7 +1888,7 @@ set pgp_mime_signature_filename="digital_signature_gpg.asc" # Type: string # Default: "Digital signature" # -set pgp_mime_signature_description="Digital signature (see http://martin-krafft.net/gpg/)" +#set pgp_mime_signature_description="Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)" # # This option sets the Content-Description used for signature parts in # PGP/MIME signed messages. @@ -1969,11 +2035,11 @@ set narrow_tree=yes # set pager_context=2 # -# set pager_format="-%Z- %C/%m: %-20.20n %s%> -- (%P)" +# set pager_format="-%Z- %C/%m: %-20.20n %s%* -- (%P)" # # Name: pager_format # Type: string -# Default: "-%Z- %C/%m: %-20.20n %s%> -- (%P)" +# Default: "-%Z- %C/%m: %-20.20n %s%* -- (%P)" # # # This variable controls the format of the one-line message ``status'' @@ -1981,6 +2047,7 @@ set pager_context=2 # pager. The valid sequences are listed in the ``$index_format'' # section. # +set pager_format="<%a> %* %i (%P)" # # set pager_index_lines=0 # @@ -1988,6 +2055,7 @@ set pager_context=2 # Type: number # Default: 0 # +# ## SET BY A DEFAULT HOOK # # Determines the number of lines of a mini-index which is shown when in # the pager. The current message, unless near the top or bottom of the @@ -2329,6 +2397,7 @@ set pgp_retainable_sigs=yes # have been marked as ``disabled'' by the user. # (PGP only) # +set pgp_show_unusable=no # # set pgp_sign_as="" # @@ -2342,7 +2411,7 @@ set pgp_retainable_sigs=yes # keyid form to specify your key (e.g., ``0x00112233''). # (PGP only) # -set pgp_sign_as="0x330c4a75" +set pgp_sign_as="0x9C9D6979AE941637" # # set pgp_strict_enc=yes # @@ -2654,6 +2723,7 @@ set pgp_auto_decode=yes # edited. This one points to the location of the private keys. # (S/MIME only) # +set smime_keys="~/.smime/keys" # # set smime_ca_location="" # @@ -2687,6 +2757,7 @@ set pgp_auto_decode=yes # the location of the certificates. # (S/MIME only) # +set smime_certificates="~/.smime/certificates" # # set smime_decrypt_command="" # @@ -2848,6 +2919,7 @@ set pgp_auto_decode=yes # keyid (the hash-value that OpenSSL generates) to work properly # (S/MIME only) # +set smime_default_key="a350124a.0" # # set ssl_force_tls=no # @@ -3121,7 +3193,8 @@ set pipe_decode # # # Controls whether or not messages are saved in the ``$postponed'' -# mailbox when you elect not to send immediately. +# mailbox when you elect not to send immediately. Also see the +# ``$recall'' variable. # # # set postponed="~/postponed" @@ -3180,8 +3253,10 @@ set postponed="=drafts" # # # This specifies the command pipe that should be used to print messages. -# + +#set print_command="iconv -s -tlatin1//TRANSLIT | a2ps -=mail -Xlatin1 --title='%D{%Y.%m.%d.%H%M%S}-\$t2-\$t1' -B --borders=no --header='\$t2: \$t1' --left-footer='#?l!%E!#?v|%E|%s./%s#|!' --right-footer='#?l!%s./%s#!#?v|%s./%s#|%E|!' -cl100 -1qP cupspdf" set print_command="muttprint" + # # set print_decode=yes # @@ -3245,6 +3320,31 @@ set print_split=yes # set query_command="lbdbq" # +# set query_format="%4c %t %-25.25a %-25.25n %?e?(%e)?" +# +# Name: query_format +# Type: string +# Default: "%4c %t %-25.25a %-25.25n %?e?(%e)?" +# +# +# This variable describes the format of the `query' menu. The +# following printf-style sequences are understood: +# +# %a destination address +# %c current entry number +# %e extra information * +# %n destination name +# %t ``*'' if current entry is tagged, a space otherwise +# %>X right justify the rest of the string and pad with "X" +# %|X pad to the end of the line with "X" +# %*X soft-fill with character "X" as pad +# +# +# For an explanation of `soft-fill', see the ``$index_format'' documentation. +# +# * = can be optionally printed if nonzero, see the ``$status_format'' documentation. +# +# # set quit=yes # # Name: quit @@ -3364,7 +3464,7 @@ set record="=store" # and replying. The default value corresponds to the English "Re:" and # the German "Aw:". # -set reply_regexp="^((re([[(]?[[:digit:]]+[)]]?)?|aw|antwort|wg|sgkb):[[:space:]]*)+" +set reply_regexp="^((re([-[(]?[[:digit:]]+[)]]?)?|a(nt)?w(ort)?|wg|s(gkb|v)):[[:space:]]*)+" # # set reply_self=no # @@ -3443,7 +3543,7 @@ set reply_regexp="^((re([[(]?[[:digit:]]+[)]]?)?|aw|antwort|wg|sgkb):[[:space:]] # alternates. If the variable is unset, or the address that would be # used doesn't match your alternates, the From: line will use # your address on the current machine. -# +# set reverse_name=yes # # set reverse_realname=yes @@ -3596,7 +3696,7 @@ set save_history=100 # Default: "us-ascii:iso-8859-1:utf-8" # # -# A list of character sets for outgoing messages. Mutt will use the +# A colon-delimited list of character sets for outgoing messages. Mutt will use the # first character set into which the text can be converted exactly. # If your ``$charset'' is not iso-8859-1 and recipients may not # understand UTF-8, it is advisable to include in the list an @@ -3604,6 +3704,9 @@ set save_history=100 # iso-8859-2, koi8-r or iso-2022-jp) either instead of or after # "iso-8859-1". # +# In case the text cannot be converted into one of these exactly, +# mutt uses ``$charset'' as a fallback. +# # # set sendmail="/usr/sbin/sendmail -oem -oi" # @@ -3617,7 +3720,8 @@ set save_history=100 # arguments as recipient addresses. # #set sendmail="/bin/true" -#set sendmail="~/.mutt/sendmail" +set sendmail="$my_confdir/sendmail" +#set sendmail="/usr/sbin/sendmail -oem -oi" # # set sendmail_wait=0 # @@ -3826,6 +3930,7 @@ set simple_search="~L %s | ~s %s" # Note: On Debian systems, this option is set by default to # ``threads'' in /etc/Muttrc. # +set sort=threads # # set sort_alias=alias # @@ -3983,7 +4088,10 @@ set spoolfile="=inbox" # %V currently active limit pattern, if any * # %>X right justify the rest of the string and pad with "X" # %|X pad to the end of the line with "X" +# %*X soft-fill with character "X" as pad +# # +# For an explanation of `soft-fill', see the ``$index_format'' documentation. # # * = can be optionally printed if nonzero # @@ -4022,7 +4130,7 @@ set spoolfile="=inbox" # will replace any dots in the expansion by underscores. This might be helpful # with IMAP folders that don't like dots in folder names. # -set status_format=" %r %f [m:%?M?%M/?%m%?n? n:%n?%?o? o:%o?%?d? d:%d?%?F? f:%F?%?t? t:%t?%?p? p:%p?%?b? i:%b?%?l? %l?] %?V?[%V] ?(%s/%S) %> (%P) " +set status_format=" %r %f [m:%?M?%M/?%m%?n? n:%n?%?o? o:%o?%?d? d:%d?%?F? f:%F?%?t? t:%t?%?p? p:%p?%?b? i:%b?%?l? %l?] %?V?%V ?(%s/%S) %> (%P) " # # set status_on_top=no # @@ -4051,6 +4159,7 @@ set status_format=" %r %f [m:%?M?%M/?%m%?n? n:%n?%?o? o:%o?%?d? d:%d?%?F? f:%F?% # ``$sort_re'' for a less drastic way of controlling this # behaviour. # +set strict_threads=yes # # set suspend=yes # @@ -4078,6 +4187,7 @@ set status_format=" %r %f [m:%?M?%M/?%m%?n? n:%n?%?o? o:%o?%?d? d:%d?%?F? f:%F?% # # Note that $indent_string is ignored when this option is set. # +set text_flowed=yes # # set thread_received=no # @@ -4085,6 +4195,7 @@ set status_format=" %r %f [m:%?M?%M/?%m%?n? n:%n?%?o? o:%o?%?d? d:%d?%?F? f:%F?% # Type: boolean # Default: no # +set thread_received=yes # # When set, mutt uses the date received rather than the date sent # to thread messages by subject. @@ -4114,6 +4225,21 @@ set thorough_search=yes # When set, the internal-pager will pad blank lines to the bottom of the # screen with a tilde (~). # +set tilde=yes +# +# set time_inc=0 +# +# Name: time_inc +# Type: number +# Default: 0 +# +# +# Along with ``read_inc'', ``write_inc'', and ``net_inc'', this +# variable controls the frequency with which progress updates are +# displayed. It suppresses updates less than ``time_inc'' milliseconds +# apart. This can improve throughput on systems with slow terminals, +# or when running mutt on a remote system. +# # # set timeout=600 # @@ -4122,10 +4248,17 @@ set thorough_search=yes # Default: 600 # # -# This variable controls the number of seconds Mutt will wait -# for a key to be pressed in the main menu before timing out and -# checking for new mail. A value of zero or less will cause Mutt -# to never time out. +# When Mutt is waiting for user input either idleing in menus or +# in an interactive prompt, Mutt would block until input is +# present. Depending on the context, this would prevent certain +# operations from working, like checking for new mail or keeping +# an IMAP connection alive. +# +# This variable controls how many seconds Mutt will at most wait +# until it aborts waiting for input, performs these operations and +# continues to wait for input. +# +# A value of zero or less will cause Mutt to never time out. # # # set tmpdir="" @@ -4226,14 +4359,17 @@ set thorough_search=yes # Default: no # # -# When set, mutt will use ``$envelope_from_address'' as the -# envelope sender if that is set, otherwise it will attempt to -# derive it from the "From:" header. Note that this information is passed -# to sendmail command using the "-f" command line switch, so don't set this -# option if you are using that switch in $sendmail yourself, -# or if the sendmail on your machine doesn't support that command -# line switch. +# When set, mutt will set the envelope sender of the message. +# If ``$envelope_from_address'' is set, it will be used as the sender +# address. If not, mutt will attempt to derive the sender from the +# "From:" header. +# +# Note that this information is passed to sendmail command using the +# "-f" command line switch. Therefore setting this option is not useful +# if the ``$sendmail'' variable already contains "-f" or if the +# executable pointed to by $sendmail doesn't support the "-f" switch. # +set use_envelope_from=yes # # set use_from=yes # @@ -4337,7 +4473,7 @@ set wait_key=no # When set to a negative value, mutt will wrap text so that there are $wrap # characters of empty space on the right side of the terminal. # -set wrap=80 +set wrap=-10 # # set wrap_search=yes # @@ -4427,11 +4563,17 @@ set xterm_set_titles=yes # Controls the format of the title bar of the xterm provided that # xterm_set_titles has been set. This string is identical in formatting # to the one used by ``$status_format''. -# +# set xterm_title="mutt@%h [%?M?%M/?%m, n:%n]%?V? [%V]?" -# +# -alternative_order text/enriched text/plain text application/postscript image/* +auto_view text/html application/ics text/calendar +#auto_view application/x-gunzip application/x-tar-gz application/x-tar application/x-gtar +#auto_view application/postscript +alternative_order multipart/mixed multipart/related text/html text/enriched text/* +#alternative_order text/plain text/enriched text/html +#alternative_order text/enriched text/plain text application/postscript image/* +mime_lookup application/octet-stream source $my_confdir/colours source $my_confdir/headers @@ -4441,8 +4583,11 @@ source $my_confdir/lists source $my_confdir/spam source $my_confdir/hooks -set my_mailboxes = `ls ~/.var/offlineimap/mailboxes 2>/dev/null || echo /dev/null` -source $my_mailboxes +set my_mutt_mailboxes = "$VARDIR/mutt/mailboxes" +source "test -f $my_mutt_mailboxes && cat $my_mutt_mailboxes|" +#source "$my_confdir/list-mailboxes $folder $spoolfile|" set alias_file="$my_confdir/aliases" source "test -f $alias_file && cat $alias_file 2>/dev/null || echo unset alias_file|" + +source $my_confdir/sidebar