about summary refs log tree commit diff stats
path: root/worker
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
|