-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_s-nail.rc
165 lines (129 loc) · 3.61 KB
/
dot_s-nail.rc
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# vim: set commentstring=#%s:
# This example assumes v15.0 compatibility mode
set v15-compat
# Request strict TLL transport layer security checks
set tls-verify=strict
# Send mail in utf-8, unless the original poster used a different charset
set sendcharsets=utf-8
set reply-in-same-charset
# When replying, do not merge From: and To: of the original message into To:.
# Instead old From: -> new To:, old To: -> merge Cc:.
set recipients-in-cc
# Wait on the MTA for errors reported through exit status (including the
# built-in SMTP one)!
set sendwait=mta
# Don't move read messages to MBOX
set hold
# cache imap
set imap-cache=~/.cache/mailx
# make sure less displays colours
set PAGER="less -FXQR"
# always use the pager when needed
set crt
# set colour display
set colour-pager
# set colours
if terminal && "$features" =% +colour
colour 256 view-header fg=brown "date,from,to,cc,bcc"
colour 256 view-header fg=green "subject"
colour 256 view-msginfo fg=white,bg=blue
colour 256 sum-dotmark ft=bold,fg=cyan dot
colour 256 sum-header fg=magenta older
colour 256 sum-thread bg=red dot
colour 256 sum-thread fg=cyan
endif
# Default to a threaded display
set autosort=thread
# Don't automatically collapse threads
unset autocollapse
# automatically launch visual editor when typing messages
set editalong=v
# Only include the selected header fields when typing messages
headerpick type retain from_ date from to cc bcc subject \
message-id mail-followup-to reply-to
# keep names when replying to messages
set fullnames
# Add my signature
# Requires me to manually add the leading '-- '
define ocs_signature {
read version
echo ''
echo '-- '
echo '~< ~/.signature'
}
set on-compose-splice=ocs_signature
# When replying, quote message
set quote
# and prefix them with "> "
set indentprefix="> "
# and wrap lines to 72 characters
set quote-fold=72
# with the header
set quote-inject-head="On %d, %f wrote:"
# Be nice with mailing lists.
set followup-to followup-to-honour=ask-yes reply-to-honour=ask-yes
# use the system sendmail for sending mail
set mta=sendmail
# and lookup passwords in netrc
set netrc-lookup
#############
# ACCOUNTS #
############
define gmail {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://ryanakca%[email protected]/
unset MBOX
set record=+"[Google Mail]/Sent Items"
}
define queensu {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://9rak%[email protected]/
set MBOX=+Read
set record=+"Sent Items"
}
define rak {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://[email protected]/
set MBOX=+RAK
set record=+Sent
}
define cmu {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://rkavanag%[email protected]/
set MBOX=+Read
set record=+"[Gmail]/Sent Mail"
}
define socs {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://mail.cs.mcgill.ca/
set mbox=+INBOX.Read
set record=+INBOX.Sent
}
define sdf {
set from="Ryan Kavanagh <[email protected]>"
set folder=imaps://mx.sdf.org/
set mbox=+INBOX.Read
set record=+INBOX.Sent
}
# rak is the default account
call rak
set inbox=+INBOX
account g {
call gmail
}
account q {
call queensu
}
account r {
call rak
}
account c {
call cmu
}
account s {
call socs
}
account sdf {
call sdf
}