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