Fixed the absolute `/home/lace' path.
[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|rhbug)"     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 # Mailman; FIXME: Patch Mutt to extend it multiline.
56 color body brightred default "^_______________________________________________\r?\n$"
57 macro index <Esc>m "l~N|~O\n"
58
59
60 # Mail command
61 ##############
62 bind index \ca mail
63 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"
64 macro index m ":unmy_hdr X-Priority Importance\n:unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
65 # quote 'macro' argument to prevent: macro: too many arguments
66 # `spamassassin {--report|--revoke}' calls `sa-learn {--spam|--ham}' automatically.
67 folder-hook ""      "macro index S \":unset wait_key\n|spamassassin --report\n:set wait_key\ns=spamo-mutt\n\""
68 folder-hook "=spam" "macro index S \":unset wait_key\n|spamassassin --report\n:set wait_key\nWN\ct~T\n\""
69 folder-hook ""      "macro pager S \":unset wait_key\n|spamassassin --report\n:set wait_key\ns=spamo-mutt\n\""
70 folder-hook "=spam" "macro pager S \":unset wait_key\n|spamassassin --report\n:set wait_key\n\""
71 folder-hook ""      "macro index H \":unset wait_key\n|spamassassin --revoke\n:set wait_key\nWN\ct~T\n\""
72 folder-hook ""      "macro pager H \":unset wait_key\n|spamassassin --revoke\n:set wait_key\n\""
73 macro editor \ew "^a  [^e]^a"
74
75 # GPG
76 #####
77 source ~/.muttrc-gpg.rc
78 unset pgp_show_unusable
79 set pgp_replyencrypt
80 set pgp_replysignencrypted
81
82 # Ignore headers
83 ################
84 unignore *
85 ignore received: content-transfer-encoding: content-length: Content-Disposition:
86 ignore mime-version: status: x-status: sender:
87 ignore references: lines: x-authentication-warning:
88 ignore list-help: list-subscribe: list-unsubscribe: list-post:
89 ignore x-loop: errors-to: x-beenthere: X-Mailman-Version: X-Sieve:
90 ignore x-mimetrack: priority: x-priority: importance: precedence: x-mime-autoconverted:
91 ignore x-accept-language: x-sender: x-antirelay:
92 ignore x-msmail-priority: x-mimeole: x-pop3-rcpt: delivered-to:
93 ignore face: organization:
94 ignore DKIM-Signature: DomainKey-Signature: X-RedHat-Spam-Score:
95 color header brightyellow black ^(From|Subject|To|Cc|Bcc|Message-ID):
96
97 # Colors
98 ########
99 color hdrdefault brightcyan black
100 color quoted cyan black
101 color signature brightred black
102 color indicator brightyellow red
103 color error brightred black
104 color status brightyellow blue
105 color tree brightmagenta black  # the thread tree in the index menu
106 color tilde brightmagenta black
107 color message brightcyan black
108 color normal white black
109 color attachment brightmagenta black
110 color search black green  # how to hilite search patterns in the pager
111 color body brightyellow black "(ftp|http)://[^ ]+"  # point out URLs
112 color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
113 color underline brightgreen black
114 mono header underline ^(From|Subject):
115 mono quoted bold