aboutsummaryrefslogtreecommitdiffstats
path: root/worker/worker.go
Commit message (Collapse)AuthorAgeFilesLines
* Add maildir backend workerBen Burwell2019-07-121-0/+3
| | | | | | | | | | | | | Add the initial implementation of a backend for Maildir accounts. Much of the functionality required is implemented in the go-message and go-maildir libraries, so we use them as much as possible. The maildir worker hooks into a new maildir:// URL scheme in the accounts.conf file which points to a container of several maildir directories. From there, the OpenDirectory, FetchDirectoryContents, etc messages work on subdirectories. This is implemented as a Container struct which handles mapping between the symbolic email folder names and UIDs to the concrete directories and file names.
* Load IMAP worker for imap+insecureDrew DeVault2019-05-201-1/+7
|
* s/aerc2/aerc/gDrew DeVault2019-05-171-2/+2
|
* worker/types: fix Worker.Callbacks race conditionSimon Ser2019-04-271-6/+1
| | | | | | | | | | | | | 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.
* Apply gofmtDrew DeVault2018-06-121-1/+2
|
* fallthrough in worker selectionMarkus Ongyerth2018-06-121-1/+1
|
* Reduce boilerplate in worker/UIDrew DeVault2018-02-011-9/+11
|
* Improve loggingDrew DeVault2018-01-311-2/+3
|
* Move worker into account tabDrew DeVault2018-01-111-1/+1
|
* Misc idiomatic fixesemersion2018-01-101-5/+2
|
* Parse account configurationDrew DeVault2018-01-091-3/+17
|
* Initial pass on worker/UI message passingDrew DeVault2018-01-091-0/+18