summary refs log tree commit diff stats
path: root/worker
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Connect to IMAP server, login and idleemersion2018-01-142-11/+113
|
* Move worker into account tabDrew DeVault2018-01-113-9/+4
|
* Renderer scaffoldingDrew DeVault2018-01-101-2/+0
|
* Misc idiomatic fixesemersion2018-01-102-10/+7
|
* Sleep main and worker loops on idleDrew DeVault2018-01-101-1/+2
|
* Parse account configurationDrew DeVault2018-01-092-6/+20
|
* Initial pass on worker/UI message passingDrew DeVault2018-01-093-0/+131