Improved spam handling
[nethome.git] / .muttrc.addons
1 # System-wide personalization for Mutt
2 ######################################
3
4 folder-hook ""        set sort=threads
5 folder-hook "!"       set sort=mailbox-order
6 folder-hook "=sent"   set sort=mailbox-order
7 folder-hook "=spam"   set sort=mailbox-order
8 folder-hook "=err"    set sort=mailbox-order
9 folder-hook "=input$" set sort=mailbox-order
10 bind index \` next-unread
11 bind index <Esc>\` previous-unread
12 unset strict_threads
13 set editor="vim -c 'set noai' -c 'set ts=8' -c 'set fileencoding=iso-8859-2' -c 'set fileencodings=iso-8859-2'"
14 set send_charset="us-ascii:iso-8859-2:utf-8"
15 set charset="iso-8859-2"
16 set autoedit
17 set auto_tag
18 set history=100
19 set include=yes
20 unset metoo
21 set mime_fwd
22 set forward_format="Fwd: [%a] %s"
23 set move=no
24 set pager_context=1
25 set pager_stop
26 set pop_delete
27 set record=+sent
28 set reverse_alias
29 set status_format="---%h:%f [%M %nN %tT %dD %lB]%>-%v---"
30 #set web_browser="lynx %s"
31 set pager_format="-%S- [%l lines, %c] %C/%T: %-20.20n   %s"
32 set status_on_top
33 set fcc_clear
34 set rfc2047_parameters
35 unset save_empty
36 set read_inc=1000
37 set write_inc=1000
38 unset confirmappend
39 unset confirmcreate
40 set reply_to=ask-yes
41 set thorough_search
42 set abort_unmodified=no
43 set date_format="!%a, %d %b %Y %H:%M:%S %z"     # RFC 2822: 3.3.
44 # FIXME: %D not needed: RFC 2822: 3.3: "converted" can IMO incl. timezone
45 # but %d will place +0000 for %z and thus brokes the timestamp
46 set attribution="On %D, %n wrote:"
47
48
49 # Mail command
50 ##############
51 bind index \ca mail
52 macro index M ":my_hdr X-Priority: 1\n:my_hdr Importance: high\n:set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN and Priority-1 classed compose of a new mail message"
53 macro index m ":unmy_hdr X-Priority Importance\n:unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
54 # quote 'macro' argument to prevent: macro: too many arguments
55 folder-hook ""      "macro index S \":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\ns=spamo-mutt\n\""
56 folder-hook "=spam" "macro index S \":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\nWN\ct~T\n\""
57 macro editor \ew "^a  [WAS: ^e]^a"
58
59 # GPG
60 #####
61 source /home/short/.muttrc-gpg.rc
62 unset pgp_show_unusable
63 set pgp_replyencrypt
64 set pgp_replysignencrypted
65
66 # Ignore headers
67 ################
68 ignore received content- mime-version status x-status message-id sender
69 ignore references return-path lines precedence x-authentication-warning
70 ignore list-help list-subscribe list-unsubscribe list-post list-archive
71 ignore x-mimetrack priority x-priority importance x-mime-autoconverted
72 ignore x-accept-language resent-message-id x-sender x-antirelay
73 ignore x-msmail-priority x-mimeole x-pop3-rcpt delivered-to
74
75 # Colors
76 ########
77 color hdrdefault brightcyan black
78 color quoted cyan black
79 color signature brightred black
80 color indicator brightyellow red
81 color error brightred black
82 color status brightyellow blue
83 color tree brightmagenta black  # the thread tree in the index menu
84 color tilde brightmagenta black
85 color message brightcyan black
86 color normal white black
87 color attachment brightmagenta black
88 color search black green  # how to hilite search patterns in the pager
89 color header brightyellow black ^(From|Subject):
90 color body brightyellow black "(ftp|http)://[^ ]+"  # point out URLs
91 color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
92 color underline brightgreen black
93 mono header underline ^(From|Subject):
94 mono quoted bold