From: Don Armstrong Date: Tue, 8 Jan 2013 23:38:03 +0000 (-0800) Subject: update muttrc to be slightly more readable X-Git-Url: https://git.donarmstrong.com/?p=mail.git;a=commitdiff_plain;h=2230d8884ef12326cf17dd076a80201e65144746 update muttrc to be slightly more readable --- diff --git a/.muttrc b/.muttrc index fc65d6c..993398d 100644 --- a/.muttrc +++ b/.muttrc @@ -76,130 +76,55 @@ set reply_to=ask-yes # Use or ignore Reply-To. set certificate_file=~/.mutt/ca-certificates -# -# Integers: -# - -set connect_timeout=30 # timeout (seconds) before reconnect. -1 => indefinite set history=200 # Size of the history buffer -set mail_check=3 # time (in seconds) how often buffy checks for new mail set pager_context=0 # number of lines, to display twice on PgUp/Down set pager_index_lines=6 # add small message index at top of pager (4) -#set pager_index_lines=`zsh -c 'temp=($(stty size)) ; expr $temp[1] / 5 + 1'` -#set pager_index_lines=`((stty size 2>/dev/null||echo 24 80);echo s0 5/1+p)|dc` set read_inc=10 # Mutt will notify when reading mailbox messages set sendmail_wait=0 # >0 (wait seconds), 0 (forground), <0 (background) set sleep_time=2 # pause (in seconds) while showing info messages -set timeout=60 # time in seconds, till Mutt looks for new mail -set wrapmargin=0 # margin left at right when doing smart line wrapping -set write_inc=10 # Mutt will notify when writing mailbox messages - - - -# -# Sorting of the mails: -# (date-received, date-sent, from, mailbox-order, size, subject, threads, -# to, score) (and everything with a prefixed "reverse-") -# (sort_aux can be prefixed with "last-" to use last element in thread -# instead of first one) -# set sort=threads # sorting the mails in threads set sort_aux=date-received # sorting the threads - - - -# -# Sortierung im File-Browser: -# (date, alpha, reverse-date, reverse-alpha) -# - set sort_browser=alpha - - -# -# Sorting of aliases: -# (alias, address, unsorted) -# set sort_alias=alias - -# -# Paths: -# ("unset" implies the compile time defaults) -# - -#reset dotlock_program # where to find mutt_dotlock (reset uses default) set display_filter="" # pipe message through this filter before displaying set editor="~/bin/sane_editor" set folder=~/Mail # where are the mailboxes (+ and = are shortcuts) -#set folder="{luv}Mail" # where are the mailboxes (+ and = are shortcuts) set from="" # From: address (see send-hook my_hdr From) -reset ispell # ispell binary (compile time default) set mbox=+inbox # not used if "set move=no" set pager=builtin # internal pager: "builtin" or e.g. "less -e" set postponed=+postponed # folder for postponed messages set print_command="sed s/\f// | a2ps -2 -g --strip 1 -Email" set query_command="lbdbq %s" # query tlr's little brothers database. set record="~/Mail/outbox" # Don't save a copy of outgoing messages (Fcc) -#reset sendmail # Default-Sendmail with options ("-oem -oi") reset shell # Take shell from /etc/passwd set signature='~/.signature' # Signature (See send-hook!) -reset spoolfile # Default spool-file (e.g. /var/spool/mail/user) set spoolfile=+INBOX # Maildir incoming file (~/Mail/incoming) -reset tmpdir # tmp-Dir (use compile time default) -reset visual # use $VISUAL as builtin editor. set narrow_tree=yes - -# -# Strings: -# ("reset" implies compile time defaults) -# - set attach_sep="\n" # Separator to add between tagged attachements set charset="utf-8" # Charset of Terminal (for display) set send_charset="utf-8" # Charsets for outgoing messages. reset escape # ESC-char for internal editor (use default). reset hostname # FQDN (use default). set indent_string="> " # Quoting mails with this string. -#set mailcap_path='~/.mailcap' # Use local mailcap only for mutt -reset mailcap_path set mh_seq_flagged="flagged" # Name of MH sequence used for flagged msgs. set mh_seq_replied="replied" # Name of MH sequence used for replied msgs. set mh_seq_unseen="unseen" # Name of MH sequence used for unseen msgs. -reset pipe_sep # separator between tagged mails (default: \n) -reset realname # get realname from /etc/passwd. set simple_search="~f %s | ~C %s | ~s %s" # default pattern (Fr|To|Cc|Su) set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach) set to_chars=" +TCF " # no to me, only to me, not only to me, Cc: to me, # from me, to subscribed mailinglist. -# set locale="de_DE" # locale settings (See send-hook section for changes!) - - - -# -# Magic (mailbox type): -# allowed values: mbox, MMDF, MH, Maildir -# set mbox_type=Maildir - -# -# RegExps: -# -# (seems to be limited to 114 chars!) -# alternates "\^(\ ((don(\\+.*)?@(.*\\.)?(donarmstrong|anylevel|oneinfinity)\\.(com|org|net))\ |(don(\\+.*)?@(.*\\.)?(rzlab|pellam)\\.ucr\\.edu)\ |(don(\\+.*)?@(.*\\.)?debian\\.org)\ ))$" # alternate usernames -set mask="." # Show these files in the file browser -#set mask="!^\\.[^.]" # Default - set gecos_mask="^[^,]*" # Parse the GECOS field from passwd file. set quote_regexp="^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+" @@ -208,43 +133,10 @@ set quote_regexp="^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+" set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fwd\\))[ \t]*)*" # Subject prefixes (removed on answering and threading) #set reply_regexp="^(re|aw):[ \t]+" # Default - -# set smileys="(>From )|(:[-^]?[][)(><}{|/DP])" - # Special chars, which are not quote regexps, but :-) - - -# -# Format-Strings: -# - set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z" # control output of %d in index_format. strftime(3) # here: Monday Dec 06, 1997 at 08:30:42pm CET -# Allows escape sequences: -# (\n = newline, \r = carriage-return, \t = tab, \f = formfeed) -# -# %a Author address %b original mbox %B destination list or mbox -# %c bytes in message %C Message number -# %d date and time in senders timezone ($date_format) -# %D date and time in local timezone ($date_format) -# %e curr. msg no in thread %E number of msgs in curr. thread -# %f address+real name %F address+realname (unless self) -# %i Message-ID %l number of lines %L list-from function -# %m # of msg in mbox %M number of hidden messages in collapsed thread -# %n author real name %N score %s subject of msg -# %S status of message (N/D/d/!/*/r) -# %t `to:' field %T char from tochars %u login name of author -# %v author's firstname %y X-Label %Y X-Label, if changed -# %Z message status flags -# %>X right justify the rest of the string and pad with character "X" -# %|X pad to the end of the line with character "X" -# %{} sent time+date in senders timezone ( is an strftime(3) expression) -# %[] sent time+date in local timezone ( is an strftime(3) expression) -# %() receive time+date in local timezone ( is an strftime(3) expression) -# %<> current time in local timezone ( is an strftime(3) expression) -# if first char in is "!", do not use locale. - set forward_format="(fwd) %s" # subject of forwarded mails @@ -253,79 +145,22 @@ spam 'X-Spam-Level: \*\*\*\*\*\*' 6 spam 'X-Spam-Level: \\*\\*\\*' 3 spam 'X-Spam-Level: \*\*' 2 spam 'X-Spam-Level: \*' 1 -#set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %?H?[%H] ?%s" set index_format="%4C %Z %[!%k:%M %m.%d.%y] %-15.15F (%?M?C%3M&%4c?) %?H?[%H] ?%s" - # message line in the index - # don't use locales here, because it's not needed and - # it runs in a memory leak in Linux libc5 - # use %[!...] or %{!...} instead -# In local folders display lines: -#folder-hook . \ -# 'set index_format="%4C %Z %[!%d.%m.%y] %-15.15F (%?M?C%3M&%4l?) %s"' -# In IMAP folders display KByte (because lines are not available): -#folder-hook ^{ \ -# 'set index_format="%4C %Z %[!%d.%m.%y] %-15.15F (%?M?C%3M&%4c?) %s"' set message_format="%-.16n: %s" # string for message/rfc822 in attachment list set pager_format="-%Z- %C/%m [%[%H:%M]] %-17.17n %s" - # status line of the pager - # (show time here, date can be seen in "pil") set post_indent_string="" # Footer (after quotes, before signature). - set attribution='On %{%a, %d %b %Y}, %n wrote:\n' - # Default Reply-Intro (See send-hook for changes!) -# %C current number %d last modified %f filename -# %F permissions %g group %l number of hard links -# %N "N" if new mail %s size in bytes %t "*" if tagged -# %u owner name %>X right justify the rest and pad with "X" -# %|X pad to the end of the line with character "X" set folder_format="%3C %t%N %f" - # file browser menu - -# -# status_format -# - -# %b # of folders with new mail %d # of deleted msgs -# %f mbox path %F # of flagged msgs %h hostname -# %m total# of messages %M # of shown msgs %n # of new msgs -# %l bytes in mbox %L size of limited msgs %o # of old msgs -# %p # of postponed. msgs %P percentage of the display -# %r readonly/changed %s sorting method %S sort_aux method -# %t # of tagged msgs %u # of unread msgs %v Mutt version -# %>X = right justify and pad with "X" %|X = pad with "X" to end of line -# %??? print iff is non zero -# %??&? - -#set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s/%S-%>-%P-" -#set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, ?%?L?%L/?%?l?%l?]--(%f)--%s/%S-%>-%P-" -set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-" - - -# -# compose_format -# (Controls the status line of the compose menu) -# %a = number of attachments %h = local hostname -# %l = approx. size of msg %v = Mutt version -# set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-" -# -# Mixmaster Support (only when --with-mixmaster) -# -# %n = number %c = capabilities %s = short name %a = address -#set mix_entry_format="%4n %c %-16s %a" # Format of mixmaster list -#set mixmaster="mixmaster" # Mixmaster binary - - - # # Pretty Good Privacy (PGP): # @@ -345,40 +180,13 @@ unset pgp_long_ids # display 64bit PGP key-ids (don't change this!) set pgp_show_unusable # show unusable PGP keys in menu set pgp_use_gpg_agent # Use gpg_agent -# %n = number %k = key id %K = key id of the principal key -# %u = user id %a = algorithm %A = algorithm of the princ. key -# %l = length %L = length of the princ. key -# %f = flags %F = flags of the princ. key -# %c = capabilities %C = capabilities of the princ. key -# %t = trust/validity of the key-uid association -#set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u" set pgp_entry_format="%4n %t%f %[%y/%m/%d] %4l/0x%k %-4a %2c %u" -# -# Sorting of PGP keys: -# (address, keyid, date, trust) and reverse-* -# set pgp_sort_keys=trust - - - -# -# Delivery Status Notification (DSN) -# (this may cause problems with some MTAs, so comment it out, if necessary) -# - set dsn_notify="failure,delay" set dsn_return="hdrs" - -# -# score -# unscore -# -# (pattern is something like '~A' (all), '~f aol\.com$', '~s mutt' ...) -# (value is between -9999 and 9999. A prefix '=' sets otherwise incr/decr) -# unscore * unset score # turn off scoring @@ -386,43 +194,7 @@ set score_threshold_delete=-1 # mark messages with score <=value deleted set score_threshold_flag=9999 # mark messages with score >=value flagged set score_threshold_read=-1 # mark messages with score <=value read - -# -# Show or suppress headers: -# - -ignore lines precedence status -ignore nntp-posting-host path old-return-path received >received references -ignore content- errors-to in-reply-to mime-version -ignore resent-message-id return-path xref path -ignore x-keywords x-uid x-ftn-via x-ftn-domain x-ftn-seen-by x-ftn-path -ignore x-gateway x-loop x-sender x-priority -ignore mbox-line x-pop3-rcpt x-mailing-list x400- dl-expansion-history -ignore priority alternate-recipient x-zc-via -ignore x-received x-envelope-sender x-return-path x-authentication-warning -ignore resent-message-id resent-sender resent-date resent-cc -ignore x-envelope-from x-envelope-to x-delivery-time -ignore x-egroups-return list-unsubscribe list-archive list-help -ignore from -unignore from: - - - -# -# Extra headers that I would like added to all my outgoing mail messages. -# Attention: !!! No comments in the (un)my_hdr lines !!! -# - -unmy_hdr * - # remove all extra headers first. - -# " -# MIME-Types which should be automatically displayed. If a copiousoutput -# exists, use it and display it in internal pager. -# (if $implicit_autoview is set, this is automated for MIME types where -# an entry with copiousoutput exists in the mailcap) -# - +unmy_hdr * auto_view text/richtext text/html text/x-sgml text/x-vcard text/x-sh \ text/x-csrc text/tex text/-xtex text/english \ application/x-tex application/x-dvi \ @@ -440,19 +212,8 @@ auto_view text/richtext text/html text/x-sgml text/x-vcard text/x-sh \ application/x-debian-package message/partial -# -# List of MIME-Types to give a priority when reading multipart/alternative -# - alternative_order text/enriched text/plain text/html - - -# -# mbox-hook pattern mailbox -# (save all "read" messages from pattern to mailbox) -# - # # monochrom terminals: # (none, bold, underline, reverse, standout) @@ -483,14 +244,6 @@ mono body underline "((ftp|http|https)://|(file|news):|www\\.)[-a-z0-9_.:]*[a-z mono body underline "[-a-z_0-9.]+@[-a-z_0-9.]+" mono body bold "(^| )\\*[-a-z0-9]+" -## ======================================================================== - -## AUTO_VIEW - tell mutt which "content types" to view with -## the command given in the $HOME/.mailcap file. -## ======================================================================== - -#auto_view text/html text/enriched application/x-gunzip application/postscript /gif application/x-tar-gz application/pgp-signature image/* - ## ======================================================================== ## BIND - bind commands to keys. ## ======================================================================== @@ -741,13 +494,6 @@ folder-hook 0_ldo_role my_hdr "Cc: listmaster@lists.debian.org" macro generic ,ad my_hdr "From: Don Armstrong " macro generic ,an my_hdr "From: Don Armstrong " -open-hook \\.gz$ "gzip -cd %f > %t" -close-hook \\.gz$ "gzip -c %t > %f" -append-hook \\.gz$ "gzip -c %t >> %f" - - - - ## "lists" adds a list of mailing lists addresses ## so mutt knows about these for showing them in the folder indes ## and to allow replying to them with the command "list-reply". @@ -771,10 +517,3 @@ mailboxes +0_ldo_role mailboxes +oftc mailboxes `for file in ~/Mail/lists/*; do echo -n "+lists/$(basename $file) "; done` mailboxes `for file in ~/Mail/bugs/*; do echo -n "+bugs/$(basename $file) "; done` - - -## FCC Hooks - - - -