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==mutt/aliases # Where to store aliases
64 set beep=no # Never beep on errors
65 set collapse_unread=no # Do not collapse thread with unread messages
66 set confirmappend=no # Don't ask me if i want to append to mailboxes
67 set fast_reply # Skip initial prompts when replying if no autoedit
68 set forward_format="[Fwd: %s]" # Subject to use when forwarding messages
69 set help # Show the help lines
70 set ignore_list_reply_to # Ignore Reply-To headers pointing to mailing lists.
71 set include=yes # Always include a copy when replying.
72 set locale=`echo $LC_TIME` # Locale to format dates
73 set mail_check=30 # How often (in seconds) to poll for new mail
74 set mark_old=no # Distinguish between seen (but unread) and new messages
75 set mask="" # Show dot-files in the file browser
76 set menu_scroll # No implicit next-page/prev-page
77 set move=no # Do not move read messages to ~/mbox
78 set pager_context=1 # No. of lines of context to give when scrolling
79 set pager_index_lines=6 # How many index lines to show in the pager
80 set pager_stop # Don't move to the next message on next-page
81 set postponed==tmp/.mutt-postponed
82 set print=ask-no # Don't waste paper
83 set recall=no # When I say "compose", ask me whether I want to continue composing a postponed message.
84 set reply_regexp="^((re([\\[0-9\\]+])*|aw|на):[ \t]*)+[ \t]*" # A regular expression to detect replies
85 set rfc2047_parameters # Sometimes, I get mails which use a bogus encoding for MIME parameters. Setting this shouldn't harm.
86 set sendmail_wait=5 # Wait 5 seconds before putting sendmail to the background.
87 set sig_dashes=no # Do not add "-- " before my sig - I already have it there
88 set status_on_top # I prefer the status bar on top
89 set suspend=no # Do not suspend on Ctrl+Z
90 set tilde # Indicate empty lines in the pager.
91 set tmpdir=~/tmp # Temporary files aren't stored in public places.
92 set use_domain=no # Don't qualify local addresses with $domain
93 set use_ipv6=no # Speed up DNS
94 set wait_key=no # Do not wait for a key after running external programs, pipes
97 set xterm_title="%f: %?m?%m messages&no messages?%?n? N:%n?%?d? D:%d?%?b? [%b new mboxes]? [$USER@%h] mutt"
98 set xterm_icon="%f: %m%?n?:%n?%?d?/%d?%?b? [%b]? [$USER@%h] mutt"
100 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
105 alternative_order text/enriched text/plain text
108 #auto_view application/ms-tnef text/x-vcard
109 #auto_view application/x-gzip application/x-gunzip
110 #auto_view application/rtf
111 #set implicit_autoview # Use copiousoutput filters from mailcap for all types of attachments
113 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
117 source /usr/share/doc/mutt/examples/gpg.rc
118 set pgp_use_gpg_agent
120 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
122 # Header fields I don't normally want to see
124 ignore * # Ignore all lines by default
126 # I do want to see these fields, though!
127 unignore date from reply-to mail-followup-to followup-to to x-original-to cc \
128 newsgroups subject user-agent x-mailer x-url x-face
130 # Default list of header fields to weed when displaying
132 #ignore "from " received content- mime-version status x-status message-id
133 #ignore sender references return-path lines
135 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
137 # Specify the order of the headers to appear when displaying a message
139 # hdr_order <hdr1> [ <hdr2> ... ]
142 hdr_order date from reply-to mail-followup-to followup-to to x-original-to cc \
143 newsgroups subject user-agent x-mailer x-url x-face
145 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
150 my_hdr X-Attribution: phd
152 my_hdr X-Face: \"4chVP^f8\;3Bi>x\"ic0%DuP(ZLyn:\;kzQ1njs]5,GRZG<{<\\~\`|Shxi7|)d|8uO~HFRfyym\n\
153 {[xs@OYG]2Q]0\#}0sjJp\`1^1+B6]A2+{9fW=S<O7^\"hul]^|AGtiI7SkYF-2VD?UH*h_!zuCIf+^F7\n\
154 c0x8?W,UfhCAx^YY\#1ALhvG\\2yG}LW:)zw\#1\;Yajq\"hK~S
156 my_hdr X-Operating-System: Debian GNU/Linux
158 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
160 # Identify mailing lists I subscribe to
162 # lists <list-name> [ <list-name> ... ]
164 subscribe (python-(announce|dev|ideas)|.*-(list|sig))@python\.org \
165 .*@moderators\.isc\.org .*@lists\.sourceforge\.net \
166 (durus|quixote)-users@mems-exchange\.org pysqlite@lists\.initd\.org \
167 .*@googlegroups\.com mlug@unixcenter\.ru
171 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
173 # Change settings based on mailbox
175 # folder-hook [!]<regexp> <command>
177 # <command> is executed when opening a mailbox matching <pattern>
181 my_hdr From: Oleg Broytman <phd@phdru.name>; \
182 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
183 my_hdr X-Url: http://phdru.name/; \
184 set attribution='On %d, %f wrote:'; \
185 set record==sent-mail; \
186 set signature==signatures/phd@phdru.name"
188 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
190 # Multiple spool mailboxes
192 # mbox-hook [!]<pattern> <mbox-mailbox>
194 # Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is closed.
196 #mbox-hook =mutt-users.in =mutt-users
197 #mbox-hook +TEST +inbox
199 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
201 # Specify default filename when saving messages
203 # save-hook [!]<pattern> <mailbox>
205 # <mailbox> is provided as default when saving messages from <pattern>
207 #save-hook mutt- =mutt-mail
208 #save-hook aol\.com +spam
212 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
214 # Specify where to save composed messages
216 # fcc-hook [!]<pattern> <mailbox>
218 # <pattern> is recipient(s), <mailbox> is where to save a copy
225 fcc-hook .* =sent-mail
227 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
229 # Change settings based upon message recipient
231 # send-hook [!]<pattern> <command>
233 # <command> is executed when sending mail to an address matching <pattern>
235 #send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>'
239 my_hdr From: Oleg Broytman <phd@phdru.name>; \
240 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
241 my_hdr X-Url: http://phdru.name/; \
242 set attribution='On %d, %f wrote:'; \
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 attribution='В %{%a, %d %b %Y в %I:%M:%S%p %Z} %f написал:'; \
249 set signature='iconv -f koi8-r ~/mail/signatures/phd@phdru.name-ru|'"
251 send-hook "~L '@(mail|list|inbox|bk)\.ru'" "\
252 my_hdr From: Олег Бройтман <phd@mail.ru>; \
253 my_hdr Reply-To: Олег Бройтман <phd@mail.ru>; \
254 my_hdr X-Url: http://my.mail.ru/mail/phd; \
255 set signature='iconv -f koi8-r ~/mail/signatures/phd@mail.ru|'"
257 send-hook "~L '(@|\.)(((ya|yandex|narod)\.ru)|(yandex\.com)|yandex-team\.ru)$'" "\
258 my_hdr From: Олег Бройтман <phd2@yandex.ru>; \
259 my_hdr Reply-To: Олег Бройтман <phd2@yandex.ru>; \
260 my_hdr X-Url: http://phd2.ya.ru/; \
261 set signature='iconv -f koi8-r ~/mail/signatures/phd2@yandex.ru|'"
263 send-hook ~u unmy_hdr Reply-To
265 send-hook "~L python-announce-list@python\.org" "\
266 set followup_to=no; \
267 my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
268 my_hdr Mail-Followup-To: Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>"
270 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
275 # Change Up/Down for pager
276 bind pager <Up> previous-line
277 bind pager <Down> next-line
279 bind index,pager <Esc>c copy-message
280 bind index,pager <Esc>S decode-save
282 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
287 # Go to the first folder with unread messages
288 macro index C <Home>c\n
289 macro pager C q<Home>c\n
291 # Move current message to inbox
292 macro index,pager S s!\n
294 macro index,pager <Esc>h ":auto_view text/html\n"
295 macro index,pager <Esc>H ":unauto_view text/html\n"
298 #macro index,pager z |"sa-learn --no-sync --ham\n"
299 #macro index,pager Z |"sa-learn --no-sync --spam\n"
300 macro index,pager <Esc>s "<Enter>q"|"spamassassin -d | ~/mail/bin/spamcop.py\nj"
301 macro index,pager <Esc>z "<Enter>q:set editor='vim -s ~/mail/misc/spamcop.vim'\nr:set editor=vim.sh\nqn"
304 macro index H <Home>c!\n
305 macro pager H q<Home>c!\n
307 # Go to python mailbox
308 macro index Y <Home>c=lists/python\n
309 macro pager Y q<Home>c=lists/python\n
311 # Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc.
312 macro index,pager M "|mimedecode.py | less\n"
313 macro index,pager E ":set editor=mimedecode.sh\ne:set editor=vim.sh\n"
315 # Convert X-Face header to an image and display it
316 macro index,pager <Esc>f |"~/mail/bin/view-x-face\n"
318 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
323 # This is for an xterm with with grayish background
325 # object foreground background regexp/pattern
327 color normal default default
328 color hdrdefault black default
330 color header magenta default ^(date|x-mailer|user-agent|x-operating-system):
331 color header blue default ^(from|to|cc|delivered-to|reply-to|mail-followup-to|x-attribution):
332 color header brightblack default ^subject:
334 color quoted blue default
335 color quoted1 magenta default
336 color quoted2 red default
337 color quoted3 green default
338 color quoted4 cyan default
339 color quoted5 blue default
340 color quoted6 magenta default
341 color quoted7 red default
342 color quoted8 green default
343 color quoted9 cyan default
344 color quoted10 blue default
346 color attachment white green
347 color error brightred default
348 color index brightblack default ~N
349 color indicator black cyan
350 color message blue default
351 color search black yellow
352 color signature magenta default
353 color status white blue
354 color underline blue default
356 color markers brightblue default
357 color tilde blue default
358 color tree blue default
361 color body brightblue default [-a-Z_0-9.+]+@[-a-Z_0-9.]+
364 color body brightblue default "(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>\"]+)[A-Za-z0-9/]"
366 # Smilies (emoticons)
367 color body brightmagenta default " [;:]-*[dp(){}<>|\\/]| [(){}<>|\\/]-*[;:]" # :-)
369 # Attributes when using a mono terminal
370 mono header underline ^Subject: