aboutsummaryrefslogtreecommitdiff
path: root/dot_mutt/private_accounts.rc.tmpl
blob: 8076fe6f17d525a30840f844ba7ecb33a15993c0 (plain) (blame)
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# vim: syntax=muttrc

account-hook imaps://ryanakca@gmail.com@imap.gmail.com \
"set imap_user = 'ryanakca@gmail.com';\
set imap_pass = '{{ .password.gmail }}';\
set imap_passive = 'no';\
set folder = 'imaps://ryanakca@gmail.com@imap.gmail.com';\
set postponed = '=[Google Mail]/Drafts';\
set spoolfile = '=INBOX';\
set from = 'Ryan Kavanagh <ryanakca@gmail.com>';\
set sendmail = 'sendmail -oem -oi';\
set record = '=[Google Mail]/Sent Mail';\
set copy = 'no';\
unset smtp_url;\
unset smtp_pass;\
unset mbox;\
source "~/.mutt/savehooks.rc";\
set pager_format = '-%Z-GMAIL: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- GMAIL: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-GMAIL: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

account-hook imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com \
"set imap_user = 'ryan.kavanagh@mcgill.ca';\
set imap_login = 'ryan.kavanagh@mcgill.ca';\
set imap_authenticators = 'xoauth2';\
set imap_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mcgill.ca-token';\
set smtp_url = 'smtp://ryan.kavanagh@mcgill.ca@smtp.office365.com:587/';\
set smtp_authenticators = 'xoauth2';\
set smtp_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mcgill.ca-token';\
unset smtp_pass;\
set folder = 'imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com';\
set record = '=Sent Items';\
set copy = 'no';\
set postponed = '=Drafts';\
set spoolfile = '=Inbox';\
set imap_passive = 'no';\
set mbox = '=Archive';\
set from = 'Ryan Kavanagh <ryan.kavanagh@mcgill.ca>';\
source "~/.mutt/alias-mcgill.rc";\
set pager_format = '-%Z-MCGILL.CA: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

account-hook imaps://ryan.kavanagh@mail.mcgill.ca@outlook.office365.com \
"set imap_user = 'ryan.kavanagh@mail.mcgill.ca';\
set imap_login = 'ryan.kavanagh@mail.mcgill.ca';\
set imap_authenticators = 'xoauth2';\
set imap_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mail.mcgill.ca-token';\
set smtp_url = 'smtp://ryan.kavanagh@mail.mcgill.ca@smtp.office365.com:587/';\
set smtp_authenticators = 'xoauth2';\
set smtp_oauth_refresh_command = '~/bin/mutt_oauth2.py ~/.mutt/xoauth2-mail.mcgill.ca-token';\
unset smtp_pass;\
set folder = 'imaps://ryan.kavanagh@mail.mcgill.ca@outlook.office365.com';\
set record = '=Sent Items';\
set copy = 'no';\
set postponed = '=Drafts';\
set spoolfile = '=Inbox';\
set imap_passive = 'no';\
set mbox = '=Archive';\
set from = 'Ryan Kavanagh <ryan.kavanagh@mail.mcgill.ca>';\
source "~/.mutt/alias-mcgill.rc";\
set pager_format = '-%Z-MAIL.MCGILL.CA: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- MAIL.MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-MAIL.MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

account-hook imaps://9rak@queensu.ca@outlook.office365.com \
"set imap_user = '9rak@queensu.ca';\
set imap_pass = '{{ .password.queensu }}';\
set folder = 'imaps://9rak@queensu.ca@outlook.office365.com';\
set record = '=Sent Items';\
set copy = 'yes';\
set postponed = '=Drafts';\
set spoolfile = '=Inbox';\
set imap_passive = 'no';\
set mbox = '=Read';\
unset smtp_url;\
unset smtp_pass;\
set sendmail = 'sendmail -oem -oi';\
set from = 'Ryan Kavanagh <ryan.kavanagh@queensu.ca>';\
set pager_format = '-%Z-QUEENSU: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- QUEENSU: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-QUEENSU: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

account-hook imaps://imap.rak.ac \
"set imap_user = 'rak';\
set imap_pass = '{{ .password.rakac }}';\
set folder = 'imaps://imap.rak.ac/';\
set record = '=Sent';\
set copy = 'yes';\
set postponed = '=Drafts';\
set spoolfile = '=Virtual.INBOX';\
set mbox = '=RAK';\
unset smtp_url;\
unset smtp_pass;\
set sendmail = 'sendmail -oem -oi';\
set from = 'Ryan Kavanagh <rak@rak.ac>';\
set pager_format = '-%Z-RAK.AC: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- RAK.AC: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-RAK.AC: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

account-hook imaps://mail.cs.mcgill.ca \
"set imap_user = 'ryank';\
set imap_pass = '{{ .password.socs }}';\
set imap_delim_chars = '.';\
set folder = 'imaps://mail.cs.mcgill.ca/';\
set record = '+INBOX.Sent';\
set copy = 'yes';\
set postponed = '+INBOX.Drafts';\
set spoolfile = '+';\
set mbox = '+INBOX.Read';\
unset smtp_url;\
unset smtp_pass;\
set sendmail = 'sendmail -oem -oi';\
set from = 'Ryan Kavanagh <rkavanagh@cs.mcgill.ca>';\
source "~/.mutt/alias-mcgill.rc";\
set pager_format = '-%Z-CS.MCGILL.CA: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- CS.MCGILL.CA: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-CS.MCGILL.CA: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

# Sources cmu aliases to override any personal variants already loaded in
# ~/.muttrc
account-hook imaps://rkavanag@alumni.cmu.edu@imap.gmail.com \
"set imap_user = 'rkavanag@alumni.cmu.edu';\
set imap_pass = '{{ .password.cmu }}';\
set imap_passive = 'no';\
set imap_keepalive = 60;\
set folder = 'imaps://rkavanag@alumni.cmu.edu@imap.gmail.com';\
set spoolfile = '=INBOX';\
set sendmail='sendmail -oem -oi';\
set from = 'Ryan Kavanagh <rkavanagh@cs.cmu.edu>';\
set mbox = '=Read';\
set record = '=[Gmail]/Sent Mail';\
set copy = 'no';\
unset smtp_url;\
unset smtp_pass;\
source "~/.mutt/alias-cmu.rc";\
set pager_format = '-%Z-CMU: %C/%m: %-20.20n   %s%*  -- (%P)';\
set compose_format = '-- CMU: Compose [Approx. msg size: %l Atts: %a]%>-';\
set status_format = '-%r-CMU: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---'"

macro compose <F2> '<enter-command>set folder="imaps://ryanakca@gmail.com@imap.gmail.com"<enter>\
<edit-fcc><kill-line><enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <ryanakca@ubuntu.com><enter>' \
"Send mail from Ubuntu account"

macro compose <Esc><F2> '<enter-command>set folder="imaps://ryanakca@gmail.com@imap.gmail.com"<enter>\
<edit-fcc><kill-line><enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <ryanakca@kubuntu.org><enter>' \
"Send mail from Kubuntu account"

macro compose <F3> '<enter-command>set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"<enter>\
<edit-fcc><kill-line><enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <rkavanag@alumni.cmu.edu><enter>' \
"Send mail from CMU Alumni account"

macro compose <Esc><F3> '<enter-command>set folder="imaps://rkavanag@alumni.cmu.edu@imap.gmail.com"<enter>\
<edit-fcc><kill-line><enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <rkavanagh@cs.cmu.edu><enter>' \
"Send mail from CMU SCS account"

macro compose <F4> '<enter-command>set folder="imaps://outlook.office365.com"<enter>\
<edit-fcc><kill-line>=Sent Items<enter>\
<edit-from><kill-line>Ryan Kavanagh <ryan.kavanagh@queensu.ca><enter>' \
"Send mail from QueensU"

macro compose <Esc><F4> '<enter-command>set folder="imaps://ryanakca@gmail.com@imap.gmail.com"<enter>\
<edit-fcc><kill-line><enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <ryan@cs.queensu.ca><enter>' \
"Send mail from cs.queensu.ca"

macro compose <F5> '<enter-command>set folder="imaps://imap.rak.ac/"<enter>\
<edit-fcc><kill-line>=Sent<enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <rak@debian.org><enter>' \
"Send mail from Debian account"

macro compose <Esc><F5> '<enter-command>set folder="imaps://imap.rak.ac/"<enter>\
<edit-fcc><kill-line>=Sent<enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <rak@rak.ac><enter>' \
"Send mail from rak.ac"

macro compose <F6> '<enter-command>set folder="imaps://mail.cs.mcgill.ca/"<enter>\
<edit-fcc><kill-line>=INBOX.Sent<enter>\
<enter-command>set sendmail="sendmail -oem -oi"<enter>\
<edit-from><kill-line>Ryan Kavanagh <rkavanagh@cs.mcgill.ca><enter>' \
"Send mail from McGill SOCS account"

macro compose <Esc><F6> '<enter-command>set folder="imaps://ryan.kavanagh@mcgill.ca@outlook.office365.com"<enter>\
<edit-fcc><kill-line><enter>\
<edit-from><kill-line>Ryan Kavanagh <ryan.kavanagh@mcgill.ca><enter>' \
"Send mail from McGill Staff account"