Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | worker/imap: rig up search directory handler | Drew DeVault | 2019-06-24 | 1 | -0/+2 |
| | |||||
* | worker/imap: implement search | Drew DeVault | 2019-06-24 | 2 | -0/+26 |
| | |||||
* | imap: block until directory list is fully received | Drew DeVault | 2019-06-14 | 1 | -0/+1 |
| | | | | This fixes issues with INBOX mysteriously not being present at times | ||||
* | imap: respect the folder config option | Reto Brunner | 2019-06-14 | 2 | -1/+16 |
| | |||||
* | Add :read and :unread commands | Drew DeVault | 2019-06-09 | 3 | -0/+26 |
| | |||||
* | Update our message flags when server updates them | Drew DeVault | 2019-06-09 | 2 | -2/+34 |
| | |||||
* | Add archive command | Robert Günzler | 2019-06-09 | 3 | -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 unread | Yash Srivastav | 2019-06-08 | 1 | -0/+1 |
| | |||||
* | implements ability to view headers in message view | Yash Srivastav | 2019-06-07 | 2 | -1/+22 |
| | |||||
* | Wait for listing to complete before sending Done | Drew DeVault | 2019-06-02 | 1 | -0/+3 |
| | |||||
* | Don't send Done until finished fetching messages | Drew DeVault | 2019-06-02 | 1 | -0/+3 |
| | |||||
* | Remove worker callbacks when Done is received | Drew DeVault | 2019-06-02 | 2 | -5/+13 |
| | |||||
* | Skip non selectable mailboxes in directory listing | Reto Brunner | 2019-05-26 | 1 | -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+insecure | Drew DeVault | 2019-05-20 | 2 | -3/+8 |
| | |||||
* | Flesh out multipart switcher | Drew DeVault | 2019-05-20 | 2 | -2/+2 |
| | |||||
* | Verify TLS certificates | Drew DeVault | 2019-05-20 | 1 | -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. | ||||
* | asdf | Drew DeVault | 2019-05-20 | 1 | -42/+2 |
| | |||||
* | worker/types/worker: remove mutex | Simon Ser | 2019-05-19 | 1 | -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 atomic | Simon Ser | 2019-05-19 | 2 | -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 message | Simon Ser | 2019-05-19 | 1 | -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/g | Drew DeVault | 2019-05-17 | 8 | -9/+9 |
| | |||||
* | Copy sent emails to the Sent folder | Drew DeVault | 2019-05-15 | 4 | -4/+63 |
| | | | | Or rather, to a user-specified folder | ||||
* | Implement move, mv commands | Drew DeVault | 2019-05-14 | 1 | -6/+0 |
| | |||||
* | Implement :copy (aka :cp) | Drew DeVault | 2019-05-14 | 3 | -0/+30 |
| | |||||
* | Handle external message deletions | Drew DeVault | 2019-05-13 | 1 | -0/+7 |
| | |||||
* | Handle incoming emails gracefully | Drew DeVault | 2019-05-13 | 2 | -3/+23 |
| | |||||
* | worker/imap: use the IMAP connection from a single goroutine | Simon Ser | 2019-04-29 | 3 | -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 condition | Simon Ser | 2019-04-27 | 2 | -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 two | Drew DeVault | 2019-03-31 | 1 | -11/+14 |
| | |||||
* | Rename FetchMessageBodies to FetchFullMessages | Drew DeVault | 2019-03-31 | 3 | -14/+14 |
| | |||||
* | Make the message viewer real, part one | Drew DeVault | 2019-03-31 | 2 | -6/+28 |
| | |||||
* | Don't parse mail in worker; send a reader instead | Drew DeVault | 2019-03-31 | 2 | -14/+5 |
| | |||||
* | Pull BodyStructure up from IMAP worker | Drew DeVault | 2019-03-31 | 2 | -9/+25 |
| | |||||
* | Add body fetching support code | Drew DeVault | 2019-03-29 | 3 | -17/+55 |
| | |||||
* | Implement :delete-message | Drew DeVault | 2019-03-20 | 5 | -1/+60 |
| | |||||
* | Display message subjects in message list | Drew DeVault | 2019-03-14 | 2 | -0/+48 |
| | |||||
* | Implement message store side of message fetching | Drew DeVault | 2019-03-14 | 2 | -9/+4 |
| | |||||
* | Fetch valid UIDs from server after opening dir | Drew DeVault | 2019-03-10 | 4 | -94/+76 |
| | |||||
* | Add loading spinner | Drew DeVault | 2019-01-13 | 1 | -0/+91 |
| | |||||
* | Add name to DirectoryInfo messages | Drew DeVault | 2019-01-13 | 2 | -2/+4 |
| | |||||
* | Issue IMAP SELECT command | Drew DeVault | 2019-01-13 | 3 | -1/+52 |
| | |||||
* | Apply gofmt | Drew DeVault | 2018-06-12 | 1 | -1/+2 |
| | |||||
* | fallthrough in worker selection | Markus Ongyerth | 2018-06-12 | 1 | -1/+1 |
| | |||||
* | Tidy up list.go | Drew DeVault | 2018-02-02 | 1 | -22/+15 |
| | |||||
* | Refactoring; consume listing response | Drew DeVault | 2018-02-01 | 3 | -36/+33 |
| | |||||
* | Implement (most of) mailbox listing | Drew DeVault | 2018-02-01 | 3 | -3/+54 |
| | |||||
* | Improve logging | Drew DeVault | 2018-02-01 | 1 | -6/+20 |
| | |||||
* | Reduce boilerplate in worker/UI | Drew DeVault | 2018-02-01 | 3 | -43/+85 |
| | |||||
* | Add certificate approval flow | Drew DeVault | 2018-01-31 | 2 | -34/+73 |
| | |||||
* | Improve logging | Drew DeVault | 2018-01-31 | 2 | -7/+26 |
| |