about summary refs log tree commit diff stats
path: root/worker
Commit message (Collapse)AuthorAgeFilesLines
* worker/imap: rig up search directory handlerDrew DeVault2019-06-241-0/+2
|
* worker/imap: implement searchDrew DeVault2019-06-242-0/+26
|
* imap: block until directory list is fully receivedDrew DeVault2019-06-141-0/+1
| | | | This fixes issues with INBOX mysteriously not being present at times
* imap: respect the folder config optionReto Brunner2019-06-142-1/+16
|
* Add :read and :unread commandsDrew DeVault2019-06-093-0/+26
|
* Update our message flags when server updates themDrew DeVault2019-06-092-2/+34
|
* Add archive commandRobert Günzler2019-06-093-0/+29
| | | | | | | | | | | | | | | Adds an archive command that moves the current message into the folder specified in the account config entry. Supports three layouts at this point: - flat: puts all messages next to each other - year: creates a folder per year - month: same as above, plus folders per month This also adds a "-p" argument to "cp" and "mv" that works like "--parents" on mkdir(1). We use this to auto-create the directories for the archive layout.
* Fetch headers w/peek to leave emails unreadYash Srivastav2019-06-081-0/+1
|
* implements ability to view headers in message viewYash Srivastav2019-06-072-1/+22
|
* Wait for listing to complete before sending DoneDrew DeVault2019-06-021-0/+3
|
* Don't send Done until finished fetching messagesDrew DeVault2019-06-021-0/+3
|
* Remove worker callbacks when Done is receivedDrew DeVault2019-06-022-5/+13
|
* Skip non selectable mailboxes in directory listingReto Brunner2019-05-261-0/+13
| | | | | | | | | | | | | | | | If a MailboxInfo has the attribute \Noselect, it is not possible to use this name as a selectable mailbox. Therefore it should not be passed to the directory handlers. The issue pops up if one has a hierarchy like this: INBOX INBOX/lists/stuff INBOX/lists/otherStuff Even though lists is not a valid inbox (doesn't contain mail, only other maildirs) it will show up in the directory listing, when we iterate over the MailboxInfo. It does have the corresponding attribute set though and we can simply filter it out.
* Load IMAP worker for imap+insecureDrew DeVault2019-05-202-3/+8
|
* Flesh out multipart switcherDrew DeVault2019-05-202-2/+2
|
* Verify TLS certificatesDrew DeVault2019-05-201-11/+0
| | | | | | I was partway done implementing a UI for users to approve untrusted certs with, but let's just make them configure their servers right instead.
* asdfDrew DeVault2019-05-201-42/+2
|
* worker/types/worker: remove mutexSimon Ser2019-05-191-36/+21
| | | | | | | | | | Worker.callbacks contains two types of callbacks: some are action callbacks, some are message callbacks. Each of those is access from one side of the communication channel (UI goroutine vs. worker goroutine). Instead of using a channel, we can use two different maps for each kind. This simplifies the code and also ensures we don't call an action callback instead of a message callback (or the other way around).
* worker/types/worker: make ID allocation atomicSimon Ser2019-05-192-10/+11
| | | | | | | | Message IDs are allocated for both messages from UI to workers and the other way around. Hence, the global nextId variable is accessed from multiple goroutines. Instead, use atomic to access the global counter.
* worker/types/worker: set ID before sending messageSimon Ser2019-05-191-3/+9
| | | | | The previous code set the message ID after sending it, which could result in the receiver reading the ID before it's set.
* s/aerc2/aerc/gDrew DeVault2019-05-178-9/+9
|
* Copy sent emails to the Sent folderDrew DeVault2019-05-154-4/+63
| | | | Or rather, to a user-specified folder
* Implement move, mv commandsDrew DeVault2019-05-141-6/+0
|
* Implement :copy (aka :cp)Drew DeVault2019-05-143-0/+30
|
* Handle external message deletionsDrew DeVault2019-05-131-0/+7
|
* Handle incoming emails gracefullyDrew DeVault2019-05-132-3/+23
|
* worker/imap: use the IMAP connection from a single goroutineSimon Ser2019-04-293-86/+77
| | | | | | | | | | | | | Unfortunately, the IMAP protocol hasn't been designed to be used from multiple goroutines at the same time. For instance, if you fetch twice the same message from two different goroutines, it's not possible to tell whether the response is for one receiver or the other. For this reason, go-imap clients aren't safe to use from multiple goroutines. This commit changes the IMAP workers to be synchronous again (a command is executed only after the previous one has completed). To use IMAP from different threads, popular clients (e.g. Thunderbird) typically open multiple connections.
* worker/types: fix Worker.Callbacks race conditionSimon Ser2019-04-272-21/+42
| | | | | | | | | | | | | Worker.Process* functions were called in different goroutines than Worker.Post*. Protect the map with a mutex. Also make the map unexported to prevent external unprotected accesses. Worker.Process* functions used to delete items from the map. However they didn't delete the element they retrieved: callbacks[msg.InResponseTo()] was read while callbacks[msg] was deleted. I'm not sure I understand why. I tried to delete the element that was accessed - but this broke everything (UI froze at "Connecting..."). I don't believe any elements were actually removed from the map, so the new code just doesn't remove anything.
* Make message viewer real, part twoDrew DeVault2019-03-311-11/+14
|
* Rename FetchMessageBodies to FetchFullMessagesDrew DeVault2019-03-313-14/+14
|
* Make the message viewer real, part oneDrew DeVault2019-03-312-6/+28
|
* Don't parse mail in worker; send a reader insteadDrew DeVault2019-03-312-14/+5
|
* Pull BodyStructure up from IMAP workerDrew DeVault2019-03-312-9/+25
|
* Add body fetching support codeDrew DeVault2019-03-293-17/+55
|
* Implement :delete-messageDrew DeVault2019-03-205-1/+60
|
* Display message subjects in message listDrew DeVault2019-03-142-0/+48
|
* Implement message store side of message fetchingDrew DeVault2019-03-142-9/+4
|
* Fetch valid UIDs from server after opening dirDrew DeVault2019-03-104-94/+76
|
* Add loading spinnerDrew DeVault2019-01-131-0/+91
|
* Add name to DirectoryInfo messagesDrew DeVault2019-01-132-2/+4
|
* Issue IMAP SELECT commandDrew DeVault2019-01-133-1/+52
|
* Apply gofmtDrew DeVault2018-06-121-1/+2
|
* fallthrough in worker selectionMarkus Ongyerth2018-06-121-1/+1
|
* Tidy up list.goDrew DeVault2018-02-021-22/+15
|
* Refactoring; consume listing responseDrew DeVault2018-02-013-36/+33
|
* Implement (most of) mailbox listingDrew DeVault2018-02-013-3/+54
|
* Improve loggingDrew DeVault2018-02-011-6/+20
|
* Reduce boilerplate in worker/UIDrew DeVault2018-02-013-43/+85
|
* Add certificate approval flowDrew DeVault2018-01-312-34/+73
|
* Improve loggingDrew DeVault2018-01-312-7/+26
|
^
90560d71 ^



d5d908dd ^


90560d71 ^

















































































d5d908dd ^


90560d71 ^
d5d908dd ^
9570363a ^
d5d908dd ^






90560d71 ^


d5d908dd ^


9570363a ^
d5d908dd ^







90560d71 ^
d5d908dd ^
9570363a ^
d5d908dd ^







90560d71 ^
d5d908dd ^
90560d71 ^
d5d908dd ^
90560d71 ^

d5d908dd ^

90560d71 ^
d5d908dd ^
90560d71 ^
d5d908dd ^
90560d71 ^


4fe9f5e8 ^


90560d71 ^
4fe9f5e8 ^


d5d908dd ^
9542bb11 ^
d5d908dd ^



90560d71 ^
762b099e ^
d5d908dd ^

90560d71 ^
d44123ca ^

d5d908dd ^
d44123ca ^

90560d71 ^

d44123ca ^

90560d71 ^

d44123ca ^
90560d71 ^
d44123ca ^

d44123ca ^


90560d71 ^
d44123ca ^

d5d908dd ^
9542bb11 ^
d5d908dd ^

90560d71 ^

4fe9f5e8 ^
90560d71 ^
4fe9f5e8 ^
d5d908dd ^
90560d71 ^

d5d908dd ^
90560d71 ^
d5d908dd ^

4fe9f5e8 ^
9542bb11 ^
d5d908dd ^
d44123ca ^
d5d908dd ^

d44123ca ^
d5d908dd ^
d44123ca ^
d5d908dd ^
d44123ca ^
90560d71 ^

9542bb11 ^


90560d71 ^
9542bb11 ^


90560d71 ^
9542bb11 ^
90560d71 ^
4fe9f5e8 ^
9542bb11 ^
d5d908dd ^
9542bb11 ^
90560d71 ^




d5d908dd ^
9542bb11 ^

d5d908dd ^
d5d908dd ^
4fe9f5e8 ^

90560d71 ^

9542bb11 ^

d44123ca ^





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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372