root/contrib/sample.muttrc-tlr

Revision 4885:781d7d435467, 10.6 kB (checked in by Thomas Roessler <roessler@…>, 2 years ago)

Remove a display_filter that's locale dependent.

Line 
1# -*-muttrc-*-
2
3#
4# Mutt configuration file of Thomas Roessler <roessler@does-not-exist.org>
5#
6# Use and distribute freely.
7#
8# Note: This file doesn't contain any personal customization, i.e.,
9# using it won't make you send messages with my name in the header.
10#
11# Things to change: You probably want to change the "priv.rc" source
12# command in the end of this file.  Also, it's likely you want to have
13# a look at the the $editor and $tmpdir variables.
14#
15
16#
17# MIME settings
18#
19
20# auto_view application/ms-tnef text/x-vcard
21# auto_view application/x-chess application/x-lotus-notes
22# auto_view text/html application/x-gzip application/x-gunzip
23# auto_view application/rtf application/x-rath
24# auto_view application/msword
25
26auto_view text/html
27mime_lookup application/octet-stream
28
29# alternative_order application/pgp text/html text/enriched text/plain
30alternative_order text/plain text/html
31
32
33#
34# Key bindings
35#
36
37#
38# A few of these may resemble Pine.  ups.
39#
40
41bind    alias   " "             tag-entry
42bind    alias   \n              select-entry
43bind    alias   \r              select-entry
44
45bind    attach  i               exit
46bind    attach  n               next-entry
47bind    attach  p               previous-entry
48bind    attach  " "             select-entry
49bind    attach  y               print-entry
50
51bind    browser <end>           last-entry
52bind    browser <home>          first-entry
53
54bind    editor  "\e<backspace>" kill-word
55bind    editor  "\e<delete>"    kill-word
56bind    editor  "<backtab>"     complete-query
57bind    editor  "\eq"           complete-query
58bind    editor  "\Ct"           transpose-chars
59
60bind    generic "\CV"           next-page
61bind    generic "\Ca"           first-entry
62bind    generic "\Ce"           last-entry
63bind    generic "\eV"           previous-page
64bind    generic "\ev"           previous-page
65bind    generic +               tag-entry
66bind    generic ^               first-entry
67bind    generic a               tag-prefix
68bind    generic $               last-entry
69bind    generic q               exit
70
71bind    index   ";"             limit
72bind    index   "\Ce"           last-entry      # override edit-type
73bind    index   "\eV"           previous-page   # override collapse-something
74bind    index   "\e<"           collapse-thread
75bind    index   "\eq"           query
76bind    index   $               last-entry
77bind    index   *               flag-message
78bind    index   <delete>        delete-message
79bind    index   <end>           last-entry
80bind    index   <home>          first-entry
81bind    index   J               next-entry
82bind    index   K               previous-entry
83bind    index   Q               quit
84bind    index   R               group-reply
85bind    index   \em             recall-message
86bind    index   a               tag-prefix
87bind    index   m               mail
88bind    index   p               previous-entry
89bind    index   t               create-alias
90bind    index   x               sync-mailbox
91bind    index   y               print-message
92bind    index   n               next-entry
93bind    index   "\ev"           previous-page
94
95bind    pager   "\Cn"           next-line
96bind    pager   "\Cp"           previous-line
97bind    pager   +               tag-message
98bind    pager   *               flag-message
99bind    pager   <delete>        delete-message
100bind    pager   <down>          next-line
101bind    pager   <end>           bottom
102bind    pager   <home>          top
103bind    pager   <up>            previous-line
104bind    pager   G               group-reply
105bind    pager   R               group-reply
106bind    pager   \em             recall-message
107bind    pager   t               display-toggle-weed # like slrn
108bind    pager   y               print-message
109
110bind    query   i               exit
111
112# make it feel like emacs
113
114macro   generic "\ex"           ":exec "
115macro   pager   "\ex"           ":exec "
116macro   generic "\eX"           "\ex"
117macro   pager   "\eX"           "\ex"
118
119macro   index   "~"             ";~"
120# macro index   "%"             ";%"
121
122# Thread tagging
123
124bind   index    "\et"           tag-subthread
125bind   index   "\eT"            tag-thread
126
127# for majordomo list owner and moderator jobs
128
129macro   index   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
130macro   pager   "\ea"           ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
131
132# emulate the old URL-browser key bindings.
133
134macro   pager   "\Cb"   "| urlview -\n"
135macro   index   "\Cb"   "| urlview -\n"
136
137# permit limiting from the pager.
138
139macro   pager   "~"     "<exit><limit>~"
140macro   pager   ";"     "<exit><limit>"
141
142# emulate the old POP-feature bindings
143
144macro   index   G       "!fetchmail\n" 
145macro   pager   G       "!fetchmail\n"
146
147# razor-report: Report spam.
148
149# macro index   S       ":set nopipe_decode nowait_key\n|razor-report > /dev/null 2> /dev/null\ns+junk\n"
150# macro   pager S       ":set nopipe_decode nowait_key\n|razor-report > /dev/null 2> /dev/null\ns+junk\n"
151macro   index   S       "s+junk\n"
152macro   pager   S       "s+junk\n"
153
154#
155# Colors
156#
157
158# This is a tiny hack, so I can get different
159# color schemes on the console and under X11.
160
161source ~/.mutt/colors.`if [ "$TERM" = "linux" ] ; then echo linux ; else echo default ; fi`
162
163mono  index bold ~F
164# mono  body  bold '\*[^*]+\*'
165# mono  body  underline '_[^_]+_'
166
167#
168# The header weed list
169#
170
171ignore delivered-to
172ignore content- errors-to in-reply-to mime-version
173ignore lines precedence status
174ignore nntp-posting-host path old-return-path received references
175ignore priority >received >>received
176ignore resent- return-path xref path
177ignore x400 importance sensitivity autoforward original-encoded-information
178ignore x- thread-
179ignore DomainKey-Signature mail-followup-to
180
181ignore list- comments posted-to approved-by
182
183unignore x-spam-level x-url x-mailer list-id x-no-spam x-archived-at
184unignore x-diagnostic
185
186hdr_order from to cc date subject reply-to mail-followup-to list-id
187
188#
189# Various settings
190#
191
192set   abort_nosubject=no                # Let me send messages with an empty subject
193set   abort_unmodified=no               # Let me send empty messages
194set   alias_file=~/.mutt/aliases        # Where to store aliases
195unset allow_8bit                        # Produce correct MIME
196unset arrow_cursor                      # Use the bar cursor
197set   askcc                             # Ask me about CCs
198unset bounce_delivered                  # Don't include Delivered-to with bounces
199# set   charset=iso-8859-1              # The local character set
200set   send_charset="us-ascii:iso-8859-1:iso-8859-15:iso-8859-2:utf-8"
201set   confirmcreate                     # Ask me about creating new files
202unset confirmappend                     # Don't ask me about appending to files
203set   delete=yes                        # Don't ask me whether or not I meant to delete messages
204# set   display_filter="tr '\240\204\223\226' ' \"\"-'" # fix some funny characters
205set   edit_hdrs                         # I want to edit the headers.
206set   editor="/usr/bin/jed %s -f 'mail_mode();'"       
207                                        # Invoke jed with mail_mode.  This may
208                                        # or may not work for you.
209set   noenvelope_from                   # set messages' envelope-from header.
210set   fcc_clear                         # Store local copies of messages in the clear.
211set   folder=~/Mail                     # Where my mail folders go
212set   followup_to                       # Create Mail-Followup-To headers.
213unset force_name                        # Don't create save folders which don't exist.
214set   forward_decode                    # Decode messages when forwarding.
215set   forward_decrypt                   # Decrypt messages when forwarding.
216set   nohelp                            # No help line.
217set   include=yes                       # Always include a copy when replying.
218set   mark_old                  # Distinguish between seen (but unread) and new messages
219set   mbox=+mbox                        # The (unused) mbox file.
220unset metoo                             # Remove me from CC headers.
221set   mime_fwd=ask-no                   # Ask me whether or not to create a MIME-encapsulated forward
222set   move=no                           # Don't use mbox
223set   pager_stop                        # Don't fall through to the next message in the pager
224set   pager_index_lines=0               # The pager index is ugly.
225set   pgp_replyencrypt                  # Encrypt when replying to encrypted messages.
226set   pgp_replysignencrypted            # Sign when replying to encrypted messages.
227set   pgp_show_unusable="no"            # Don't display unusable keys.
228set   pgp_sort_keys="keyid"             # Sort keys by key ID
229set   pgp_replysign                     # Sign when replying to signed messages.
230set   pgp_timeout=3600                  # Forget the PGP passphrase after an hour.
231set   pipe_decode                       # Decode messages I pipe to commands, typically to patch(1).
232set   postponed=~/.mutt/postponed       # Where to put postponed messages
233set   print=ask-no                      # Don't waste paper
234set   print_cmd="enscript -2Gr -Email"  # Two columns, landscape, fancy header.
235set   print_split=yes                   # Invoke enscript once per message
236set   quit=yes                          # Don't ask me whether or not I want to quit.
237set   quote_regexp="^ *[a-zA-Z]*[>|][>:|]*"     # Recognize quotes in the pager.
238set   read_inc=50                       # Progress indicator when reading folders.
239set   recall=ask-no                     # When I say "compose", ask me whether I want to continue
240                                        # composing a postponed message.
241set   record="+archive/now"             # Put copies of most outgoing messages to ~/Mail/archive/now
242set   reply_to=ask-yes                  # Ask me whether I want to honor users' reply-to headers.
243set   reverse_alias                     # Use aliases to display real names on the index.
244set   save_name                         # Save copies by name.  Together with $record and $save_name,
245                                        # this means that when a folder exists, copies of outgoing
246                                        # messages are written to ~/Mail/<name>, otherwise they go to
247                                        # ~/Mail/archive/now
248set   signature=~/.signature            # Silly signature
249set   sig_dashes                        # Add dashes above my signature
250set   smart_wrap                        # Try to be smart when wrapping around lines in the pager
251set   sort=threads                      # sort by threads,
252set   sort_aux=date                     # then by date
253unset strict_threads                    # don't be strict about threads
254# set   suspend=no                      # Don't suspend - I usually run mutt like this: "xterm -e mutt"
255set   tilde                             # Indicate empty lines in the pager.
256set   tmpdir=~/.tmp                     # Temporary files aren't stored in public places.
257set   to_chars=" +TCF "                 # Don't tag list mail in the index
258
259unset use_domain                        # Don't append a domain to addresses.
260
261set   write_inc=50                      # Progress indicator when writing folders.
262set   query_command="lbdb2q.pl %s"              # Use the Little Brother's Database with the external
263                                        # query feature.
264set   sendmail_wait=-1                  # Don't put sendmail into the background.
265set   encode_from                       # "From " in the beginning of a line triggers quoted-printable
266set   nowait_key                        # Return immediately from external programs
267set   forw_format="[fwd] %s (from: %a)" # A different subject for forwarded messages
268set   nobeep                            # Shut up. ;-)
269set   reply_regexp="^((re([\\[0-9\\]+])*|aw):[ \t]*)+[ \t]*"    # A regular expression to detect replies
270set   header                            # Include the message header when replying.
271set   ignore_list_reply_to              # Ignore Reply-To headers pointing to mailing lists.
272set   norfc2047_parameters              # Sometimes, I get mails which use a bogus encoding for
273                                        # MIME parameters.  Setting this shouldn't harm.
274                                        # (OK, she doesn't use Notes any more, so I can unset this. ;-)
275# set   text_flowed                     # Generate text/plain; format=flowed
276# unset use_ipv6                                # Don't try to use IPv6 - it doesn't work here.
277set   keep_flagged                      # don't move flagged messages to mbox
278set   hide_missing=yes                  # Don't show how many messages are missing in a thread structure
279
280set status_format="-%r-+(%v) %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]----%>-(%P)---"
281set compose_format="--+(%v) Compose  [Approx. msg size: %l   Atts: %a]%>-"
282set pager_format="-%Z- %C/%m: %.20n %> %s"
283
284set smileys="^$"
285set ispell=iaspell
286
287set markers=no                          # Don't mark wrapped lines
288set wrapmargin=4                        # Leave a margin in the pager
289
290# PGP command configuration
291# source ~/.mutt/pgp2.rc
292source ~/.mutt/gpg.rc
293set pgp_getkeys_command=""
294
295# source ~/.mutt/smime.rc
296
297
298# source non-public stuff, (hooks, alternates, ...)
299source ~/.mutt/priv.rc
300
301# source aliases
302# source ~/.mutt/aliases-coruscant
303source ~/.mutt/aliases
Note: See TracBrowser for help on using the browser.