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