about summary refs log tree commit diff stats
path: root/commands/compose/send.go
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2019-10-29 17:11:38 +0000
committerDrew DeVault <sir@cmpwn.com>2019-11-01 11:02:01 -0400
commit331b915139e23073aa42bf28d67901383dd859ca (patch)
tree52f339005f16a28c2f19b31f42cbbe21e7ca5273 /commands/compose/send.go
parent6dc537fbe3516181322a93b04f3884b9a4bb243c (diff)
downloadaerc-331b915139e23073aa42bf28d67901383dd859ca.tar.gz
Add support for AUTH LOGIN submission
`go-sasl` upstream added support [1] for the obsolete [2] AUTH LOGIN
method which enables aerc to send email via servers which remain common
in the wild.

Fixes ~sircmpwn/aerc2#263

[1] https://github.com/emersion/go-sasl/commit/61afe53d
[2] https://datatracker.ietf.org/doc/draft-murchison-sasl-login/
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r--commands/compose/send.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 5a12428..2d994bf 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -92,6 +92,9 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error {
 		fallthrough
 	case "none":
 		saslClient = nil
+	case "login":
+		password, _ := uri.User.Password()
+		saslClient = sasl.NewLoginClient(uri.User.Username(), password)
 	case "plain":
 		password, _ := uri.User.Password()
 		saslClient = sasl.NewPlainClient("", uri.User.Username(), password)
mit/config/aerc.conf?h=0.4.0&id=39c93d2897af5bb0c145ef4f99f542bf42babdab'>39c93d2 ^
39c93d2 ^




99c363b ^




06af539 ^




152f8c9 ^


955b5c2 ^
152f8c9 ^

3156d48 ^


8372e9e ^
3156d48 ^
618a500 ^




36af93b ^








1bedb8f ^

955b5c2 ^
1bedb8f ^

39c93d2 ^

bbdf9df ^


39c93d2 ^
bbdf9df ^

39c93d2 ^








b83e7c9 ^






dfc048f ^







fb12413 ^




7160f98 ^










065da5e ^






67fb093 ^

3ba69ed ^
67fb093 ^



fad375c ^











bbdf9df ^








8e5ed2a ^

61206c6 ^
37f0114 ^
61ef404 ^
e0cadd6 ^
dc4c36a ^





d3faf66 ^
dc4c36a ^



3ba69ed ^



















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