useless
[apps/madmutt.git] / contrib / sample.muttngrc
1 #######################################################################
2 # $HOME/.muttng/muttngrc
3 # Purpose:        Setup file for the mailer muttng 
4 #                 <http://mutt-ng.berlios.de/>
5 # Author:         Andreas Kneib <akneib@gmx.net>     
6 # Latest change:  Wed, 23 Feb 2005 12:16:05 +0100
7
8
9
10 ## KEYBINDINGS ########################################################
11 #
12 # Use ß to show the parent message
13 bind index ß parent-message 
14 bind pager ß parent-message
15
16 # Esc-f: muttng forget the GnuPG-passphrase
17 bind index \ef forget-passphrase
18 bind pager \ef forget-passphrase
19
20 # Esc-p: delete a message. Forever! (see "set trash")
21 bind index \ep purge-message
22 bind pager \ep purge-message
23
24 # Control-p/n: navigate in the sidebar
25 # Control-o: open a mailfolder in the sidebar (see
26 # variables "set sidebar_width=" and "set sidebar_visible")
27 bind index \CP sidebar-prev
28 bind index \CN sidebar-next
29 bind index \CO sidebar-open
30 bind pager \CP sidebar-prev
31 bind pager \CN sidebar-next
32 bind pager \CO sidebar-open
33
34
35 # MACROS ##############################################################
36 #
37 # Switch the sidebar on an off
38 macro index b ':toggle sidebar_visible^M'
39 macro pager b ':toggle sidebar_visible^M'
40
41 # Pipe the massage through a shellscript
42 macro pager <F5> "|bin/fetchnewsgroupheader.sh \nF" 'Copy for VIM'
43
44 # Switch the Content-Transfer-Encoding between 8bit and quoted-printable
45 macro pager B ':toggle allow_8bit ; set ?allow_8bit'\n
46
47 # Show the Manual
48 macro pager <F1> '!less ~/.own/muttng/doc/muttng/manual.txt' 'Call Manual'
49 macro index <F1> '!less ~/.own/muttng/doc/muttng/manual.txt' 'Call Manual'
50
51 # Start a script to fetch mails and usenet-article
52 macro pager G '!lfetch &> /dev/null &' 'Fetch mails and postings'
53 macro index G '!lfetch &> /dev/null &' 'Fetch mails and postings'
54
55 # Answers of messages from me are highlightet (F2) or not (F3)
56 macro index <F2> ':color index brightyellow default "!~f akneib@gmx.net ~b kneib"'^M 'Highlight ON for answers to me'
57 macro pager <F2> ':color index brightyellow default "!~f akneib@gmx.net ~b kneib"'^M 'Highlight ON for answers to me'
58 macro index <F3> ':uncolor index brightyellow default "!~f akneib@gmx.net ~b kneib"'^M 'Highlight OFF for answers to me'
59 macro pager <F3> ':uncolor index brightyellow default "!~f akneib@gmx.net ~b kneib"'^M 'Highlight OFF for answers to me'
60
61 # Change into the mailfolder "zu_beantworten". 
62 # Messages I want to reply are in this folder
63 macro pager ö "<change-folder>=zu_beantworten<enter>y" "Change to folder =zu_beantworten"
64 macro index ö "<change-folder>=zu_beantworten<enter>y" "Change to folder =zu_beantworten"
65
66 # Move messages into the trashcan "papierkorb"
67 macro pager ä "<save-message>=papierkorb<enter>y"     "Move messages into the trashcan"
68 macro index ä "<save-message>=papierkorb<enter>y"     "Move messages into the trashcan"
69
70 # Move (and decrypt) messages into the mailfolder "zu_beantworten"
71 macro pager ü "<decrypt-copy>=zu_beantworten<enter>y" "Copy Message in folder =zu_beantworten"
72 macro index ü "<decrypt-copy>=zu_beantworten<enter>y" "Copy Message in folder =zu_beantworten"
73
74 # Esc-a show ALL messages in the folder/newsgroup
75 macro index \ea "l~A\n" 'Show ALL messages'
76
77 # Esc-a show only NEW messages in the folder/newsgroup
78 macro index \en "l~N\n" 'Show NEW messages'
79
80 # Esc-i show only messages from ME in the folder/newsgroup
81 macro index \ei "l~P\n" 'Show messages FROM ME'
82
83 # Esc-o show only ANSWERS to ME in the folder/newsgroup
84 macro index \eo "l!~f akneib@gmx.net ~b kneib ~N\n" 'Show ANSWERS to ME  '
85
86 # Esc-d show only messages from TODAY in the folder/newsgroup
87 macro index \ed "l~d `date +%d`\n" 'Show messages from today'
88
89 # Change from the filebrowser to the mailfolder "inbox"
90 macro browser ö "c.mutt/Mail\n\t\nc=inbox\n" 'browser to inbox'
91
92 # Control-r pipe the body of the message thru sed an vim.
93 # It's good for decrypt ROT13 in vim
94 macro pager \cr "|sed -e "1,/^$/d" | vim -c 'set syntax=mail' -\n" 'ROT13'
95
96 # Control-w pipe the body of the message thru sed and the webbrowser w3m
97 macro index \cw "|sed -e "1,/^$/d" | w3m\n" 'Message pipe W3M' 
98 macro pager \cw "|sed -e "1,/^$/d" | w3m\n" 'Message pipe W3M' 
99
100 # Pipe the message to a script that decrypt the geek-code
101 macro pager <F4> "|ungeek -rm > /tmp/ungeek; less /tmp/ungeek" 'Geek-Code decode'
102
103 # Pipe the message in spamassassins "sa-learn" for the bayes-filter
104 macro index <F9> "|sa-learn --ham --single\n"   'Message as HAM to Spamassassin'
105 macro pager <F9> "|sa-learn --ham --single\n"   'Message as HAM to Spamassassin'
106 macro index <F10> "|sa-learn --spam --single\n" 'Message as SPAM to Spamassassin'
107 macro pager <F10> "|sa-learn --spam --single\n" 'Message as SPAM to Spamassassin'
108
109 # Esc-x show X-Face-header
110 macro pager \ex "|~/.mutt/view-x-face\n" 'View X-Faces'
111
112
113 # Change the windowsize of the index/pager
114 macro pager \e1 ":set pager_index_lines=1\n" 'Windowsize 1'
115 macro pager \e2 ":set pager_index_lines=2\n" 'Windowsize 2'
116 macro pager \e3 ":set pager_index_lines=3\n" 'Windowsize 3'
117 macro pager \e4 ":set pager_index_lines=4\n" 'Windowsize 4'
118 macro pager \e5 ":set pager_index_lines=5\n" 'Windowsize 5'
119 macro pager \e6 ":set pager_index_lines=6\n" 'Windowsize 6'
120 macro pager \e7 ":set pager_index_lines=7\n" 'Windowsize 7'
121 macro pager \e8 ":set pager_index_lines=8\n" 'Windowsize 8'
122 macro pager \e9 ":set pager_index_lines=9\n" 'Windowsize 9'
123 macro pager \e0 ":set pager_index_lines=0\n" 'Windowsize 0'
124
125 # Esc-, use "utf8tolatin1" as display filter.
126 # Sometimes the reader apple-mail srcapping umlauts, if the message is PGP/GPG-encrypted.
127 macro pager \e, ":set display_filter='utf8tolatin1'" 'utf8tolatin1 as display_filter for broken utf8/gpg-Mails'
128
129 # Source two files: The aliases and the gpg-options.
130 source ~/.mutt/aliases ~/.mutt/gpg.rc
131
132
133 # VARIABLES ###########################################################
134 #
135 # Messages with no subject given at the subject 
136 # prompt will never be aborted.
137 set abort_nosubject=no
138
139 # Ask to aborted the unmodified message, if no changes are made into 
140 # the file.
141 set abort_unmodified=ask-yes
142
143 # The file in which to save aliases created by the "create-alias"-function.
144 # (see "source ~/.mutt/aliases).
145 set alias_file="~/.mutt/aliases"
146
147 # The format displayed in the "alias"-menu.
148 set alias_format="%3n %t %-12 %r"
149
150 # Show an arrow, not a beam to mark a current entry
151 set arrow_cursor
152
153 # YES for follow-up groups before editing the body of an outgoing 
154 # message.
155 set ask_follow_up=yes
156
157 # If set, Mutt will prompt you for x-comment-to field before editing the
158 # body of an outgoing message.
159 #set nntp_ask_x_comment_to
160
161 # This  variable  describes the format of the 'attachment' menu.
162 # (see "man muttngrc for details).
163 set attach_format="%u%D%t%2n %T%.40d%> [%.7m/%.10M, %.6e, %s] "
164
165 # Format of the attribution-line:
166 # -------------------------------
167 # Hallo $forename,
168 #
169 # * $name $mailadress:
170 #
171 # -------------------------------
172 set attribution="Hallo %v,\n\n* %n <%a>:\n"
173
174 # Do not beep when an error occurs.
175 unset beep
176
177 # beep by new mail
178 set beep_new=yes
179
180 # Get asked if you want to bounce a message with default-NO
181 set bounce=ask-no
182
183 # Get asked if Mutt mark all articles in newsgroup as read when you quit the 
184 # newsgroup. Default-NO
185 set nntp_catchup=ask-no
186
187 # Character set your terminal uses
188 set charset="iso-8859-15"
189
190 # Controls the format of the status line displayed in the "compose"-menu.
191 # (see "man muttngrc")
192 set compose_format="-- [Geschätzte Nachrichtengröße: %l Nachrichten-Teile: %a]%>-"
193
194 # Messages marked for deleting will automatically be purged without 
195 # prompting.
196 set delete=yes
197
198 # Filter messages thru t-prot in the display
199 set display_filter="t-prot -cemkst -M=mutt"
200
201 # Edit the header of an outgoing message with the body of the message.
202 set edit_headers
203
204 # The editor vim is used by mutt. 
205 set editor="vim '+/^$'"
206
207 # Mutt will try to derive the message envelope sender from the 
208 # "From:"-header.
209 set envelope_from
210
211 # The initial prompt for recipients and subject are skipped when replying
212 # a message.
213 set fast_reply
214
215 # No attachments of an outgoing message are saved.
216 unset fcc_attach
217
218 # FCCs will be stored unencrypted and unsigned.
219 set fcc_clear
220
221 # Specifies the default location of the mailboxes. A '+' or '=' at the 
222 # beginning of a pathname will be expanded to the value of this variable.
223 # (See section "HOOKS" and "MAILBOXES" in this file).
224 set folder=~/.mutt/Mail
225
226 # This  variable  describes the format of the 'file-browser'-menu.
227 set folder_format="%2C %N %-40.40f %d"
228
229 # Ask me by a follow-up2poster
230 set nntp_followup_to_poster=ask-yes
231
232 # This  variable  describes the format of the subject when forwarding 
233 # a message.
234 set forward_format="(Weiterleitung) %s [%a]"
235
236 # This  variable  describes the display of the newsgroup-browser.
237 # (see "man muttngrc" for details).
238 set nntp_group_index_format="%4C %M%N %5s  %-45.45f %d"
239
240 # This  variable controls the size of the history-buffer.
241 set history=100
242
243 # Specifies  the  hostname  to use after the "@" in local e-mail 
244 # addresses.
245 set hostname="andreas.kneib.biz"
246
247 # Include the mailbody in the message I reply.
248 set include=yes
249
250 # This  variable  describes the format of the message-index.
251 set index_format="%4C %Z [  %-20.20F] (%?M?C%3M&%4l?) %s"
252
253 # Ask-YES if you really intended to reply to the author only.
254 set list_reply=ask-yes
255
256 # Look 2 seconds for new mail.
257 set mail_check=2
258
259 # Define the mailcap-file (see section AUTOVIEW in this file).
260 set mailcap_path="~/.mailcap"
261
262 # Do not mark a messages as old.
263 set nomark_old
264
265 # Show all files in the file browser.
266 set mask="."
267
268 # Do not move a message into $mbox.
269 set nomove
270
271 # Define the operation system in the user-agent-header.
272 set operating_system="Debian GNU/`uname -s` `cat /etc/debian_version` (`uname -r`)"
273
274 # Define the string displayed in the "attachment"-menu.
275 set message_format="%-.16n: %s"
276
277 # Set the format of the message-id.
278 # Message-ID: <2005-02-23T12-55-12.GA16507@$LOCALPART>
279
280 set msgid_format="%Y-%m-%dT%h-%M-%s.G%P%p"
281
282 # In this directory muttng will save cached news articles headers.
283 set nntp_cache_dir="~/.mutt/newsspool"
284
285 # In this file muttng write information about subscribed newsgroups.
286 set nntp_newsrc="~/.mutt/newsrc"
287
288 # This variable define the format of the "status"-line in the pager.
289 set pager_format="%> [%b]"
290
291 # Four lines for the mini-index about the pager.
292 set pager_index_lines=4
293
294 # The key which muttng use.
295 set pgp_sign_as=0x8BCAC169
296
297 # After 3600 seconds a cached passphrase will expire if not used.
298 set pgp_timeout=3600
299
300 # A message to place back will stored in this folder.
301 set postponed="~/.mutt/Mail/postponed"
302
303 # Use the muttprint to print a message.
304 set print_command="muttprint"
305
306 # Print without request
307 set print="yes"
308
309 # To set "yes" is better with muttprint.
310 set print_split
311
312 # If an external pager is closed, muttng goes right away in the index.
313 set noprompt_after
314
315 # Use Little Brother DataBase to queries external addresses.
316 set query_command="/usr/bin/lbdbq '%s'"
317
318 # Prompted with YES when I want to quit muttng.
319 set quit=ask-yes
320
321 # A regular expression used in the internal-pager to determine quoted 
322 # sections of text in the mailbody.
323 set quote_regexp="^( {0,4}[>|:%]| {0,4}[a-z0-9]+[>|]+)+"
324
325 # Controls whether or not empty lines will be quoted using 
326 # "indent_string". Here is "no":
327 set quote_empty=no
328
329 # Controls  how  quoted lines will be quoted. If set, one quote character 
330 # will be added to the end of  existing  prefix.
331 # This...
332 # --------------------
333 # blabla blabla
334 # | cite
335 # blabla blabla
336 # --------------------
337 # ...will be quoted to this:
338 # --------------------
339 # > blabla blabla
340 # | | cite
341 # > blabla blabla
342 # --------------------
343 set quote_quoted=yes
344
345
346 # My name
347 set realname="Andreas Kneib"
348
349 # In this file my outgoing messages should be stored.
350 # (see "set folder" in this file)
351 set record=+sent-mail
352
353 # This regex  used to recognize reply messages when threading and replying.
354 set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fwd\\))[ \t]+)*"
355
356 # Always use the To as From in all messages.
357 set reverse_name
358
359 # Muttng use these character sets for outgoing messages.
360 set send_charset="us-ascii:iso-8859-1:iso-8859-15:utf-8"
361
362 # The SMTP-server of my provider
363 set smtp_host="mail.gmx.de"
364
365 # Set the username for authentication on mail.gmx.de
366 set smtp_user="......."
367
368 # Set the password for authentication on mail.gmx.de
369 set smtp_pass="......."
370
371
372 # NO sendmail. I deliver via "smtp_host"!
373 # Reset the sendmail-variable.
374 #reset sendmail
375 #
376 # Use sendmail with these options
377 #set sendmail="/usr/lib/sendmail -oi -oem"
378 #
379 # Sendmail waiting always in the background.
380 #set sendmail_wait=-1
381
382 # Asked the newsserver for new newsgroups when entering the browser.
383 set nntp_show_new_news
384
385 # Show only unread and subscribed newsgroups
386 #set nntp_show_only_unread
387
388 # 30 chars width for the left sidebar
389 set sidebar_width=30
390
391 # Do not show the sidebar when stating muttng.
392 unset sidebar_visible
393
394 # No sign-dashes ("-- ")...
395 unset sig_dashes
396
397 # ...and no signature.
398 unset signature
399
400 # Set these string at the bottom of all messages (and about the 
401 # signature, if you have one).
402 set signoff_string="Regards,\nAndreas"
403
404 # First sort messages by threads...
405 set sort=threads
406
407 # Sort the messaes in the threads by the sent-date.
408 set sort_aux=date-sent
409
410 # ~/.mutt/Mail/inbox is my spool mailbox instead /var/spool/$USER.
411 set spoolfile="/home/andreas/.mutt/Mail/inbox"
412
413 # Define the format of the status line displayed in the "index"-menu.
414 set status_format="%> Nachrichten [%m insg.%?n? | %n neu?%?t? | %t mark.?%?d? | %d gel.?%?M? | %M angez. mit %V?] ---(%f)---"
415
416 # Only use the header-fields "References" and "In-Reply-To" to sort 
417 # threads. 
418 set strict_threads
419
420 # Set the tilde "~" at the bottom of displayed messages in the pager.
421 set tilde
422
423 # That is the trashfolder. Messages, marked for deletion (with "d"), 
424 # stored in this folder. Messages you purge (see "Esc-p" i this file)
425 # are not moved into this folder.
426 set trash=+papierkorb
427
428 # Set the User-Agent-Header.
429 set agent_string
430
431 # Do not wait for a keypress, if I use a commando like "pipe-message".
432 unset wait_key
433
434 # Do not write the Bcc-Header. The mailserver exim dont work good 
435 # with this.
436 unset write_bcc
437
438
439 # MAILBOXES ###########################################################
440 #
441 mailboxes ! +aporia
442 mailboxes ! +cron
443 mailboxes ! +efriends
444 mailboxes ! +gerd
445 mailboxes ! +gmx
446 mailboxes ! +joerg
447 mailboxes ! +linux
448 mailboxes ! +linux-user
449 mailboxes ! +inbox
450 mailboxes ! +michael
451 mailboxes ! +netzliteratur
452 mailboxes ! +newsletter
453 mailboxes ! +orakel
454 mailboxes ! +papierkorb
455 mailboxes ! +spam
456 mailboxes ! +sudelbuch
457 mailboxes ! +test
458 mailboxes ! +zu_beantworten
459
460 # NEWSGROUPS ##########################################################
461 #
462 mailboxes ! nntp://localhost/comp.mail.mutt
463 mailboxes ! nntp://localhost/de.alt.fan.tolkien
464 mailboxes ! nntp://localhost/de.alt.netdigest
465 mailboxes ! nntp://localhost/de.comm.software.browser.misc
466 mailboxes ! nntp://localhost/de.comm.software.mailreader.misc
467 mailboxes ! nntp://localhost/de.comm.software.mailserver
468 mailboxes ! nntp://localhost/de.comm.software.newsreader
469 mailboxes ! nntp://localhost/de.comm.software.newsserver
470 mailboxes ! nntp://localhost/de.comp.editoren
471 mailboxes ! nntp://localhost/de.comp.lang.perl.misc
472 mailboxes ! nntp://localhost/de.comp.os.unix.apps.misc
473 mailboxes ! nntp://localhost/de.comp.os.unix.discussion
474 mailboxes ! nntp://localhost/de.comp.os.unix.linux.hardware
475 mailboxes ! nntp://localhost/de.comp.os.unix.linux.misc
476 mailboxes ! nntp://localhost/de.comp.os.unix.shell
477 mailboxes ! nntp://localhost/de.comp.os.unix.x11
478 mailboxes ! nntp://localhost/de.org.ccc
479 mailboxes ! nntp://localhost/de.rec.film.misc
480 mailboxes ! nntp://localhost/de.rec.orakel
481 mailboxes ! nntp://localhost/gmane.editors.vim 
482 mailboxes ! nntp://localhost/gmane.linux.debian.user.german
483 mailboxes ! nntp://localhost/gmane.mail.mutt.mutt-ng.devel
484 mailboxes ! nntp://localhost/gmane.mail.mutt.user
485 mailboxes ! nntp://localhost/gmane.network.leafnode
486 mailboxes ! nntp://localhost/gmane.network.slrn.user
487
488
489 # ALTERNATIVES ADRESSES ###############################################
490 #
491 alternates (akneib@foobar\.tld|aporia@foobar\.lö|akneib@gmx\.net)
492
493
494 # OWN HEADER ##########################################################
495
496 # First all header to zero.
497 unmy_hdr *
498
499 # My GnuPG-key-ident.
500 my_hdr X-GnuPG-KeyID: 8BCAC169
501
502 # My GnuPG-fingerprint.
503 my_hdr X-GnuPG-Fingerprint: 95F3 5951 6091 8F46 82B9  EE2E 9686 20D3 8BCA C169
504
505 # My X-Editor-header. Look strange. ;)
506 #my_hdr X-Editor: `vim --version | grep IMp | awk -F"(" '{ print $1 }'|sed 's/[ ]$//g'`.`vim --version | rev |grep cnI | awk '{ print $1}' | rev | awk -F "1-" '{ print $2 }'`
507
508 # My From-header.
509 my_hdr From: akneib@foobar.tld
510
511
512 # DISPLAYED HEADER ####################################################
513 #
514 # At first all header to zero.
515 unhdr_order *
516
517 # Order in which muttng will attempt to present headers in the display.
518 hdr_order From: Subject: To: Newsgroups: Cc: Bcc: Reply-To: Followup-To:
519
520 # Ignore all header.
521 ignore * 
522
523 # Unignor following header:
524 unignore from: subject: to: newsgroups: Followup-To: X-Spam-Report: X-Soest: cc: Mail-Copies-To:
525
526
527 # This MIME types should automatically displayed (see "set mailcap" 
528 # in this file).
529 auto_view text/richtext
530 auto_view text/html
531 auto_view text/x-sgml
532 auto_view text/x-vcard
533 auto_view text/x-sh
534 auto_view text/x-csrc
535 auto_view text/enriched
536 auto_view message/partial
537 auto_view text/ms-rtf
538 auto_view text/rtff
539 auto_view application/x-gzip-dvi
540 auto_view application/x-gzip
541 auto_view application/x-gunzip
542 auto_view application/x-gtar
543 auto_view application/x-tar
544 auto_view application/x-tar-gz
545 auto_view application/x-rar-compressed
546 auto_view application/x-zip-compressed
547 auto_view application/zip
548 auto_view application/x-csh
549 auto_view application/x-sh
550 auto_view application/x-script
551 auto_view application/x-shellscript
552 auto_view application/x-latex
553 auto_view application/x-shar
554 auto_view application/x-troff-man
555 auto_view application/x-troff-me
556 auto_view application/x-pgp-message
557 auto_view application/pgp-encrypted
558 auto_view application/pgp-signature
559 auto_view application/pgp-keys
560 auto_view application/ms-tnef
561 auto_view application/pdf
562 auto_view application/octet-stream
563 auto_view application/x-tcl
564 auto_view application/x-perl
565 auto_view application/ms-word
566 auto_view application/msword
567 auto_view application/word
568 auto_view application/ms-rtf
569 auto_view application/rtf
570 auto_view application/x-www-form-urlencoded
571 auto_view application/octet-stream
572
573 # In this order muttng should display the multipart/alternative-part 
574 # in the body of message.
575 alternative_order text/html text/enriched text/plain
576
577
578 # Subscribed mailinglist:
579 subscribe mailingliste@invalid.foo
580
581
582 # HOOKS ###############################################################
583 #
584 # Pgp-hooks. Concatenates an adress with a key.
585 pgp-hook gerd.geppert@invalid.bar 429E3FDE
586 pgp-hook gerd.geppert@foo.bar B1E7E53D
587
588
589 # Save-hooks. Define the folder into incoming messages are saved
590 save-hook '~t mailingliste@invalid.foo'               +archiv/netzliteratur-`date +%Y-%m`
591 save-hook '~h From:.*RUS-CERT'                        +archiv/newsletter-`date +%Y-%m`
592 save-hook '~h Newsgroups:.*'                          +archiv/posted-`date +%Y-%m`
593 save-hook '~f wittkewitz@'                            +archiv/joerg-`date +%Y-%m`
594 save-hook '~f info@foob.ar   '                        +archiv/joerg-`date +%Y-%m`
595 save-hook '~t e-friends-l@invalid.tld.com'            +archiv/e-friends-`date +%Y-%m`
596 save-hook '~f @foobar.invalid'                        +archiv/michael-`date +%Y-%m`
597 save-hook '~B sudelbuch'                              +archiv/sudelbuch-`date +%Y-%m`
598 save-hook '~h Subject:.*SPAM-SCORE'                   +archiv/spam-`date +%Y-%m`
599 save-hook '~f root@comtwo.comtwo'                     +archiv/cron-`date +%Y-%m`
600 save-hook '~f @tagesschau.tld.invalid'                +archiv/newsletter-`date +%Y-%m`
601 save-hook '~f @newsfeed.osdn.dot.foo'                 +archiv/newsletter-`date +%Y-%m`
602 save-hook .                                           +archiv/save-`date +%Y-%m`
603
604
605 # Send-Hooks. No PGP-autosign for all messages.
606 send-hook . "unset crypt_autosign"
607
608 # Define an atriibution-line an a from-header which use, 
609 # when send a message to this mailinglist.
610 send-hook ^mailingliste@.*invalid\\.foo$ \
611       'set attribution="Hallo %v,\n\n* %n <%a>:\n" ; my_hdr From: "Andreas Kneib" <aporia@foo.bar>'
612
613 # PGP-autoencrypt and set a new attribution-line for this recipient.
614 send-hook ^gerd.geppert@(bar|foobar|invalid)\\.tld \
615       'set crypt_autoencrypt attribution="Hallo %v,\n\n* Du schriebst:\n" ; my_hdr From: "Andreas Kneib" <akneib@inval.id>'
616
617 # PGP-autosign and set a new attribution-line for this recipient.
618 send-hook ^.*@foobar.invalid \
619       'set crypt_autosign attribution="Hallo %v,\n\n* Du schriebst:\n"'
620
621
622 # Send-hook for newsgroups. "!~t." means: Messages with no To:-header.
623 send-hook !~t. 'my_hdr From: "Andreas Kneib" <akneib@gmx.net>' 
624 send-hook !~t. 'set record=+posted'
625 send-hook !~t. "set attribution='* %n <%a>:\n'"
626       
627
628 # Folder-hooks for newsgroups. When open a newsgroup only show NEW
629 # postings.
630 folder-hook nntp 'push l~N\n'
631 # Highlight mails they are answers to me (see the macro to F2).
632 folder-hook nntp 'push <F2>'
633
634 # In the folder "zu_beantworten" only show messages, I not reply.
635 folder-hook +zu_beantworten$ 'push l!~Q\n'
636
637 # Folder-hooks for all folder.
638 folder-hook . 'my_hdr From: "Andreas Kneib" <akneib@inva.lid>'
639 folder-hook . "set attribution='Hallo %v, \n\n* %n <%a>:\n'"
640 folder-hook . 'set display_filter="t-prot -cemkst -M=mutt"'
641 folder-hook . 'set record=+sent-mail'
642 # Don't highlight mails they are answers to me (see the macro to F3).
643 folder-hook . 'push <F3>'
644 # Show ALL mails
645 folder-hook . 'push l~A\n'
646
647 # In folder "cron" highlight IP-adresses in the logfiles.
648 folder-hook +cron$ 'color body red yellow "from [0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,4}"'
649 folder-hook +cron$ 'color body white blue "port [0-9]{1,5}"'
650
651 # The from in the mailbox "gmx".
652 folder-hook +gmx$ 'my_hdr From: "Andreas Kneib" <akneib@gmx.net>'
653
654 # The from in the mailbox "aporia".
655 folder-hook +aporia$ 'my_hdr From: "Andreas Kneib" <aporia@foobar.tld>'
656
657 # Do not use a display-filter for the folder "orakel".
658 folder-hook +orakel 'set display_filter=""'
659
660 # Time to save (or delete) messages in the folder:
661 # mailbox "efriends": One Month.
662 folder-hook +efriends$          'push T~r>1m!~F\n\;' 
663 # mailbox "newsletter": Three days.
664 folder-hook +newsletter$        'push T~r>3d!~F\n\;'
665 # mailbox "linux": One week.
666 folder-hook +linux$             'push T~r>1w!~F\n\;' 
667
668
669
670 # COLOR ###############################################################
671 #
672 # Syntax: color object foreground background
673 #         color index  foreground background
674 #         color body   foreground background
675 #         color header foreground background
676 #
677 # Color of normal text
678 color normal      default        default
679
680 # Color of the folder with new messages in sidebar
681 color sidebar_new brightgreen    default
682
683 # Color of the indicator (see "set arrow_cursor")
684 color indicator   brightdefault  default
685
686 # Color of the thread-tree
687 color tree        brightmagenta  default
688
689 # Color of the status-line
690 color status      brightwhite    black 
691
692 # Color of error-messages
693 color error       red            default 
694
695 # Color of muttng-info-messages
696 color message     default        default
697
698 # Color of the displayed signature
699 color signature   red            default
700
701 # Color of the attachment-info
702 color attachment  brightyellow   default
703
704 # Color of the found words
705 color search      brightyellow   red 
706
707 # Color of the tilde (see "set tilde")
708 color tilde       brightblue     default
709
710 # Color of the markers by broken lines
711 color markers     red            default
712
713 # Color of the header
714 color hdrdefault  blue           default
715
716 # Color of bld an underline
717 color bold        brightblack    default      
718 color underline   brightwhite    default
719
720 # Color of the quoted text
721 color quoted      blue           default      
722 color quoted1     red            default      
723 color quoted2     magenta        default      
724 color quoted3     green          default      
725 color quoted4     blue           default      
726 color quoted5     cyan           default      
727 color quoted6     green          default      
728 color quoted7     red            default      
729 color quoted8     magenta        default      
730 color quoted9     blue           default
731
732 # Color of tagged messages in the index
733 color index       brightyellow   default  ~T
734
735 # Color of deleted messages in the index
736 color index       red            default  ~D
737
738 # Color of new messages in the index
739 color index       brightblack    default  ~N
740
741 # Color of flagged messages in the index
742 color index       brightred      default  ~F
743
744 # Color of message is from me in the index (see "alternates")
745 color index       brightblue     default  ~P
746
747 # Color of the CC-header
748 color header      brightwhite    default  "cc:"
749
750 # Color of the header from, subject, newsgroups and to
751 color header      brightred      default  "^(from|subject|newsgroups|to):"
752
753 # Color of the header reply-to and date
754 color header      red            default  "^(reply-to|date):"
755
756 # Color of the header user-agent, x-mailer and x-newsreader
757 color header      brightgreen    default  "^(user-agent|x-mailer|x-newsreader):"
758
759 # Color of the header Mail-Copies-To and Followup-To
760 color header      brightwhite    default  "^(Mail-Copies-To|Followup-To):"
761
762 # Color of the header X-Soest (don't ask me why, but I need this ;))
763 color header      brightred      blue     "^X-Soest:"
764
765 # Color of the spamassassin-header
766 color header      brightyellow   default  "X-Spam-Report:"
767
768 # Color of mail-adresses in the body
769 color body        brightblue     default  "[-a-z_0-9.+]+@[-a-z_0-9.]+"
770
771 # Color of the string <URL:foobar> in the body
772 color body        brightblue     default  "<URL:.*>"
773
774 # Color of URL in the body
775 color body        brightblue     default  "((ftp|http|https)://|(file|mailto|news):|www\\.)[-a-z0-9_.:]*[a-z0-9](/[^][{} \t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?"
776
777 # Color of smileys in the body
778 color body        brightdefault  yellow      "[;:]-*[)oO>(<]"
779
780 # Color for the german GnuPG-output in the body
781 color body        red            default  "Korrekte Unterschrift"
782 color body        brightyellow   black    "(Öffentlicher Schlüssel nicht gefunden|keine vertrauenswürdige Signatur|Dieser Schlüssel ist verfallen)"
783 color body        brightred      black    "FALSCHE Unterschrift"
784 color body        brightgreen    black    "nicht durch hinreichend vertrauenswürdige Signaturen zertifiziert"
785
786 # Color for the t-prot-output in the body
787 color body        magenta        default   "^\\[---.*"
788
789 # Color for verbatim-marks in the body
790 color body        brightgreen    black    "^#v[-+]"
791
792 # Color for *fat* text in the body
793 color body        brightblack    default  "\\*+[^\\*]+\\*+"
794
795 # Color for _underline_ text in the body
796 color body        brightwhite    default  "_+[^_]+_+"
797
798 # Color for /italic/ text in the body
799 color body        red            default  "[^/a-z]/[a-z]+/[^/a-z]" 
800
801 # Colors to test the colors color0-7 in the body
802 color body        color0         default  "color0"
803 color body        color1         default  "color1"
804 color body        color2         default  "color2"
805 color body        color3         default  "color3"
806 color body        color4         default  "color4"
807 color body        color5         default  "color5"
808 color body        color6         default  "color6"
809 color body        color7         default  "color7"
810
811 # Color the attribution-line in order of the quoted lines.
812 color body       brightblue     default "^[^>].*(wrote|writes|said|says|schrieb|schreibt|schrub|\
813 schreibselte|tippte|meinte|teilte folgendes mit|\
814 escreveu|escribió|scripsit|[0-9]+\\]|\\.[a-z]{2,4}>).*:"
815
816 color body       brightred       default "^>[^>].*(wrote|writes|said|says|schrieb|schreibt|schrub|\
817 schreibselte|tippte|meinte|teilte folgendes mit|\
818 escreveu|escribió|scripsit|[0-9]+\\]|\\.[a-z]{2,4}>).*:"
819
820 color body       brightmagenta   default "^>[ ]?>[^>].*(wrote|writes|said|says|schrieb|schreibt|schrub|\
821 schreibselte|tippte|meinte|teilte folgendes mit|\
822 escreveu|escribió|scripsit|[0-9]+\\]|\\.[a-z]{2,4}>).*:"
823
824 # vim: ft=muttrc
825 # EOF