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