2 # User configuration file for Mutt
5 # Note: $folder should be set _before_ any other path vars where `+' or `='
6 # is used because paths are expanded when parsed
8 #set folder=~/Mail # Where I keep my mailboxes; I am happy with this default
10 # Character set for my terminal and config files (including aliases)
11 set charset=`case "$LC_CTYPE" in *UTF-8) echo utf-8 ;; *) echo koi8-r ;; esac`
12 set assumed_charset="us-ascii:utf-8:windows-1251:koi8-r" # Character sets for mail without a charset
13 set config_charset=koi8-r # Character set for this config file and alias files
14 set send_charset="us-ascii:iso-8859-1:koi8-r:windows-1251:utf-8" # Character sets for outgoing mail
15 charset-hook x-unknown koi8-r # Show unknow encoding as koi8-r
16 charset-hook windows-1251 cp1251 # Autoconvert windoze encoding
22 alternates `awk '{s=s"|"$0} END {print substr(s,2)}' $HOME/mail/misc/.myemail` # All my addresses
24 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
26 # Mailboxes to watch for new mail
28 # mailboxes <path1> [ <path2> ... ]
31 mailboxes ! =admin =block =bulk =spam `echo $HOME/mail/lists/* | sed s#$HOME/mail/#=#g`
33 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
38 #set indent_string='%v> ' # How to quote replied text
40 # Settings for dumb slow term
41 set ascii_chars=`[ -n "$SLOWTERM" ] && echo yes || echo no` # Use ASCII instead of ACS chars for threads
42 set arrow_cursor=`[ -n "$SLOWTERM" ] && echo yes || echo no` # Draw a simple cursor on slow terminals
44 set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %s" # Somewhat different index format, which works nicely with mail lists.
45 set pager_format="%4C %Z %[%b %d] %-15.15F (%4l) %s %* ---(%P)---" # Mostly match index_format
47 set sort=mailbox-order # Primary sorting method
48 #set sort=threads # Sort by threads,...
49 set sort_aux=date # ...then by date
51 set sort_alias=unsorted
52 set sort_browser=alpha
54 set history=1000 # Number of lines of history in memory
55 set history_file==tmp/.mutt_history
56 set save_history=1000 # Number of lines of history in file
58 set read_inc=10 # Progress indicator when reading folders.
59 set write_inc=10 # Progress indicator when writing folders.
61 set allow_8bit # Never do Q-P encoding on legal 8-bit chars
62 set abort_unmodified=no # Let me send empty messages
63 set alias_file==tmp/aliases # Where to store aliases
64 set attribution="`case "$LC_TIME" in ru_RU*) echo 'В %{%a, %d %b %Y в %I:%M:%S%p %Z} %f написал(а):' ;; *) echo 'On %d, %f wrote:' ;; esac`" # `
65 set beep=no # Never beep on errors
66 set collapse_unread=no # Do not collapse thread with unread messages
67 set confirmappend=no # Don't ask me if i want to append to mailboxes
68 set fast_reply # Skip initial prompts when replying if no autoedit
69 set forward_format="[Fwd: %s]" # Subject to use when forwarding messages
70 set help # Show the help lines
71 set ignore_list_reply_to # Ignore Reply-To headers pointing to mailing lists.
72 set include=yes # Always include a copy when replying.
73 set locale=`echo $LC_TIME` # Locale to format dates
74 set mail_check=30 # How often (in seconds) to poll for new mail
75 set mark_old=no # Distinguish between seen (but unread) and new messages
76 set mask="" # Show dot-files in the file browser
77 set menu_scroll # No implicit next-page/prev-page
78 set move=no # Do not move read messages to ~/mbox
79 set pager_context=1 # No. of lines of context to give when scrolling
80 set pager_index_lines=6 # How many index lines to show in the pager
81 set pager_stop # Don't move to the next message on next-page
82 set postponed==tmp/.mutt_postponed
83 set print=ask-no # Don't waste paper
84 set recall=no # When I say "compose", ask me whether I want to continue composing a postponed message.
85 set reply_regexp="^((re([\\[0-9\\]+])*|aw|на):[ \t]*)+[ \t]*" # A regular expression to detect replies
86 set rfc2047_parameters # Sometimes, I get mails which use a bogus encoding for MIME parameters. Setting this shouldn't harm.
87 set sendmail_wait=5 # Wait 5 seconds before putting sendmail to the background.
88 set sig_dashes=no # Do not add "-- " before my sig - I already have it there
89 set status_on_top # I prefer the status bar on top
90 set suspend=no # Do not suspend on Ctrl+Z
91 set tilde # Indicate empty lines in the pager.
92 set tmpdir=~/tmp # Temporary files aren't stored in public places.
93 set use_domain=no # Don't qualify local addresses with $domain
94 set use_ipv6=no # Speed up DNS
95 set wait_key=no # Do not wait for a key after running external programs, pipes
98 set xterm_title="%f: %?m?%m messages&no messages?%?n? N:%n?%?d? D:%d?%?b? [%b new mboxes]? [$USER@%h] mutt"
99 set xterm_icon="%f: %m%?n?:%n?%?d?/%d?%?b? [%b]? [$USER@%h] mutt"
101 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
106 alternative_order text/enriched text/plain text
109 #auto_view application/ms-tnef text/x-vcard
110 #auto_view application/x-gzip application/x-gunzip
111 #auto_view application/rtf
112 #set implicit_autoview # Use copiousoutput filters from mailcap for all types of attachments
114 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
118 source /usr/share/doc/mutt/examples/gpg.rc
119 set pgp_use_gpg_agent
121 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
123 # Header fields I don't normally want to see
125 ignore * # Ignore all lines by default
127 # I do want to see these fields, though!
128 unignore date from reply-to mail-followup-to followup-to to x-original-to cc \
129 newsgroups subject user-agent x-mailer x-url x-face
131 # Default list of header fields to weed when displaying
133 #ignore "from " received content- mime-version status x-status message-id
134 #ignore sender references return-path lines
136 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
138 # Specify the order of the headers to appear when displaying a message
140 # hdr_order <hdr1> [ <hdr2> ... ]
143 hdr_order date from reply-to mail-followup-to followup-to to x-original-to cc \
144 newsgroups subject user-agent x-mailer x-url x-face
146 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
151 my_hdr X-Attribution: phd
153 my_hdr X-Face: \"4chVP^f8\;3Bi>x\"ic0%DuP(ZLyn:\;kzQ1njs]5,GRZG<{<\\~\`|Shxi7|)d|8uO~HFRfyym\n\
154 {[xs@OYG]2Q]0\#}0sjJp\`1^1+B6]A2+{9fW=S<O7^\"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7\n\
155 c0x8?W,UfhCAx^YY\#1ALhvG\\2yG}LW:)zw\#1\;Yajq\"hK~S # `
157 my_hdr X-Operating-System: Debian GNU/Linux
159 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
161 # Identify mailing lists I subscribe to
163 # lists <list-name> [ <list-name> ... ]
165 subscribe (python-(announce|dev|ideas)|.*-(list|sig))@python\.org \
166 core-workflow@python\.org \
167 .*@moderators\.isc\.org .*@lists\.sourceforge\.net \
168 (durus|quixote)-users@mems-exchange\.org pysqlite@lists\.initd\.org \
169 .*@googlegroups\.com mlug@unixcenter\.ru
173 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
175 # Change settings based on mailbox
177 # folder-hook [!]<regexp> <command>
179 # <command> is executed when opening a mailbox matching <pattern>
183 my_hdr From: Oleg Broytman <phd@phdru.name>; \
184 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
185 my_hdr X-Url: http://phdru.name/; \
186 set record==sent-mail; \
187 set signature==signatures/phd@phdru.name"
189 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
191 # Multiple spool mailboxes
193 # mbox-hook [!]<pattern> <mbox-mailbox>
195 # Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is closed.
197 #mbox-hook =mutt-users.in =mutt-users
198 #mbox-hook +TEST +inbox
200 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
202 # Specify default filename when saving messages
204 # save-hook [!]<pattern> <mailbox>
206 # <mailbox> is provided as default when saving messages from <pattern>
208 #save-hook mutt- =mutt-mail
209 #save-hook aol\.com +spam
213 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
215 # Specify where to save composed messages
217 # fcc-hook [!]<pattern> <mailbox>
219 # <pattern> is recipient(s), <mailbox> is where to save a copy
226 fcc-hook .* =sent-mail
228 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
230 # Change settings based upon message recipient
232 # send-hook [!]<pattern> <command>
234 # <command> is executed when sending mail to an address matching <pattern>
236 #send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>'
240 my_hdr From: Oleg Broytman <phd@phdru.name>; \
241 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
242 my_hdr X-Url: http://phdru.name/; \
243 set signature==signatures/phd@phdru.name"
245 send-hook "~L '@.*\.(r|s)u$'" "\
246 my_hdr From: Олег Бройтман <phd@phdru.name>; \
247 my_hdr Reply-To: Олег Бройтман <phd@phdru.name>; \
248 set signature='iconv -f koi8-r ~/mail/signatures/phd@phdru.name-ru|'"
250 send-hook "~L '@(mail|list|inbox|bk)\.ru'" "\
251 my_hdr Reply-To: Олег Бройтман <phd@mail.ru>; \
252 my_hdr X-Url: http://my.mail.ru/mail/phd; \
253 set signature='iconv -f koi8-r ~/mail/signatures/phd@mail.ru|'"
255 send-hook "~L '(@|\.)(((ya|yandex|narod)\.ru)|(yandex\.com)|yandex-team\.ru)$'" "\
256 my_hdr From: Олег Бройтман <phd2@yandex.ru>; \
257 my_hdr Reply-To: Олег Бройтман <phd2@yandex.ru>; \
258 my_hdr X-Url: http://phd2.ya.ru/; \
259 set signature='iconv -f koi8-r ~/mail/signatures/phd2@yandex.ru|'"
261 send-hook ~u unmy_hdr Reply-To
263 send-hook "~L python-announce-list@python\.org" "\
264 set followup_to=no; \
265 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
266 my_hdr Mail-Followup-To: Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>"
268 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
273 # Change Up/Down for pager
274 bind pager <Up> previous-line
275 bind pager <Down> next-line
277 bind index,pager <Esc>c copy-message
278 bind index,pager <Esc>S decode-save
280 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
286 <Home><change-folder><Enter> \
287 "Go to the first folder with unread messages"
289 <exit><Home><change-folder><Enter> \
290 "Go to the first folder with unread messages"
292 macro index,pager S \
293 <save-message>!<Enter> \
294 "Move current message to inbox"
296 macro index,pager <Esc>h \
297 ":auto_view text/html<Enter>" \
298 "View HTML attachments"
299 macro index,pager <Esc>H \
300 ":unauto_view text/html<Enter>" \
301 "Don't show HTML attachments"
304 "<pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
305 "Send spam to SpamCop"
307 "<exit><pipe-message>spamassassin -d | ~/mail/bin/spamcop.py<Enter><next-undeleted>" \
308 "Send spam to SpamCop"
310 ":set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
311 "Process message from SpamCop"
313 "<exit>:set editor='vim -s ~/mail/misc/spamcop.vim'<Enter><reply>:set editor=vim.sh<Enter><exit>n" \
314 "Process message from SpamCop"
317 <Home><change-folder>!<Enter> \
320 <exit><Home><change-folder>!<Enter> \
323 <Home><change-folder>=sent-mail<Enter> \
326 <exit><Home><change-folder>=sent-mail<Enter> \
329 # Go to python mailbox
331 <Home><change-folder>=lists/python<Enter> \
334 <exit><Home><change-folder>=lists/python<Enter> \
337 # Go to STCnet "Atlas"/STM mailboxes
339 <Home><change-folder>=stcnet<Enter> \
342 <exit><Home><change-folder>=stcnet<Enter> \
345 <Home><change-folder>=sent-stcnet<Enter> \
348 <exit><Home><change-folder>=sent-stcnet<Enter> \
351 # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc.
353 <Esc>m "<pipe-message>mimedecode.py | less<Enter>" \
354 "View MIME-decoded message"
355 macro index,pager E \
356 ":set editor=mimedecode.sh<Enter><edit>:set editor=vim.sh<Enter>" \
357 "MIME-decode and save"
359 macro index,pager <Esc>f \
360 <pipe-message>~/mail/bin/view-x-face<Enter> \
361 "Convert X-Face header to an image and display it"
363 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
368 # This is for an xterm with with grayish background
370 # object foreground background regexp/pattern
372 color normal default default
373 color hdrdefault black default
375 color header magenta default ^(date|x-mailer|user-agent|x-operating-system):
376 color header blue default ^(from|to|cc|delivered-to|reply-to|mail-followup-to|x-attribution):
377 color header brightblack default ^subject:
379 color quoted blue default
380 color quoted1 magenta default
381 color quoted2 red default
382 color quoted3 green default
383 color quoted4 cyan default
384 color quoted5 blue default
385 color quoted6 magenta default
386 color quoted7 red default
387 color quoted8 green default
388 color quoted9 cyan default
389 color quoted10 blue default
391 color attachment white green
392 color error brightred default
393 color index brightblack default ~N
394 color indicator black cyan
395 color message blue default
396 color search black yellow
397 color signature magenta default
398 color status white blue
399 color underline blue default
401 color markers brightblue default
402 color tilde blue default
403 color tree blue default
406 color body brightmagenta default [-a-Z_0-9.+]+@[-a-Z_0-9.]+
409 color body brightblue default "(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>\"]+)[A-Za-z0-9/]"
411 # Smilies (emoticons)
412 color body brightmagenta default " [;:]-*[dp(){}<>|\\/]| [(){}<>|\\/]-*[;:]" # :-)
414 # Attributes when using a mono terminal
415 mono header underline ^Subject: