-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuttrc
141 lines (122 loc) · 3.69 KB
/
muttrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
## Server config
source "~/.mutt/user"
# IMAP config
set imap_user="$my_login@$my_hostname"
set imap_pass=$my_password
set folder="imaps://outlook.office365.com:993/"
set spoolfile= +INBOX
set postponed= +Drafts
set record = +INBOX
set trash = +Trash
mailboxes
set imap_check_subscribed=yes
set imap_list_subscribed=yes
set timeout=10
timeout-hook "exec sync-mailbox buffy-list"
set mail_check=60
set imap_keepalive=10
set imap_idle
unset mark_old
set imap_passive
set ssl_use_sslv3=yes
#set imap_pipeline_depth=0
set connect_timeout=-1
# SMTP config
set realname = "Kirill Tkhai"
set from = "$my_login@$my_hostname"
set use_from=yes
set smtp_pass = $my_password
set hostname = $my_hostname
set smtp_url = "smtp://$my_login@$my_hostname@outlook.office365.com:587"
set ssl_force_tls = yes
set ssl_starttls = yes
set smtp_authenticators = "login"
## More settings
set sleep_time=0
set quit=ask-yes
set askcc=yes
# File storage settings
set signature="~/.mutt/signature"
set message_cachedir="~/.mutt/message_cache"
set header_cache="~/.mutt/header_cache"
set maildir_header_cache_verify=yes
set tmpdir="~/.mutt/tmp"
# Text view first
set pager_stop="yes"
set smart_wrap="yes"
alternative_order text/plain text/enriched text/html
auto_view text/html
set reverse_name = yes
set reverse_realname = yes
# Text editor
set editor="vim"
# Adress book handling
set sort_alias=alias
set reverse_alias=yes
set alias_file="~/.mutt/aliases"
# Thread ordering
set sort = "threads"
set sort_browser="reverse-date"
set sort_aux="reverse-last-date-sent"
unset collapse_unread
set date_format="!%a, %b %d, %Y at %H:%M"
set index_format=" %?M? ↳&%4C? %Z %D %-15.15n %s"
## Key bindings
# Mailboxes
bind index G imap-fetch-mail
macro index c "<change-folder>?"
# Index
bind index <up> previous-entry
bind index <down> next-entry
bind index <delete> delete-message
bind index C noop
bind index - collapse-thread
bind index _ collapse-all
# Pager
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> previous-entry
bind pager <right> next-entry
bind pager <delete> delete-message
## Colors
color index brightyellow default "~(!~T)~P" # From me
color index blue default ~D # Deleted
color index red default ~N # New
color index brightgreen default ~T # Tagged
color normal white default
color attachment brightyellow default
color hdrdefault cyan default
color indicator black cyan
color markers brightred default
color quoted green default
color quoted1 blue default
color quoted2 yellow default
color quoted3 red default
color quoted4 cyan default
color signature cyan default
color status brightgreen blue
color tilde blue default
color tree red default
color header brightgreen default ^From:
color header brightcyan default ^To:
color header brightcyan default ^Reply-To:
color header brightcyan default ^Cc:
color header brightblue default ^Subject:
color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+"
color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+"
# Diff highlight
color body brightwhite default "^diff \-.*"
color body brightwhite default "^index [a-f0-9].*"
color body green default "^[\+].*"
color body red default "^[\-].*"
color body brightwhite default "^[\-]{3} .*"
color body brightwhite default "^[\+]{3} .*"
color body brightwhite default "^---$"
color body brightblue default "^@@ .*"
color body brightwhite default "^Signed-off-by:.*"
color body brightwhite default "^CC:.*"
color body brightwhite default "^Acked-by:.*"
color body brightwhite default "^Reviewed-by:.*"
# Mutt highlights closing bracket and " #" as "quoted" by default, fix that:
color body default default "^ ([\t]+|[ ]+|)}.*"
color body default default "^ #.*"