aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-12Add threading support for maildirthreadingBen Burwell
2019-10-12Add thread deletionKevin Kuehler
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12Add threading control path to msglist.Draw()Kevin Kuehler
Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12lib/msgstore: Handle DirectoryThreaded msgKevin Kuehler
This method is called after a worker fetches a threaded directory contents from the backend. We iterate over the threads in the same order that they will be printed in the msglist. Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12worker/types/thread: Add FormatThread functionKevin Kuehler
FormatThread performs dfs on a thread tree. For every node in the tree, a callback function is called with a thread and a format string for that thread. The format string is to be used when displaying the full thread tree. Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12widgets/msglist: Draw each row in a functionKevin Kuehler
This function can be reused by the threading code. Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12worker/imap: Add threading extensionKevin Kuehler
* Import the go-imap-sortthread library * Add sortthread client to imapClient in worker * Add handleDirectoryThreaded, which uses the go-imap-sortthread, and converts the results to the aerc thread type Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-12Start adding thread supportKevin Kuehler
* Add threading-enabled config option * Add DirectoryThreaded and FetchDirectoryThreaded types to control path * Add generic thread type for all backends to use Signed-off-by: Kevin Kuehler <keur@xcf.berkeley.edu>
2019-10-09Revert "Show spinner when fetching contents"Drew DeVault
This reverts commit 1339faf7881f33762c6e0a4915404e362fc51de1.
2019-10-09Preserve sorting order in search resultsJeffas
This ensures that the search results follow the order of the current sort so that cycling throught the results proceeds in displayed order.
2019-10-09Show spinner when fetching contentsJeffas
The spinner should be shown when fetching the contents as we don't know at that point whether there are some messages or not.
2019-10-02Fix selected account to return for messageviewerJeffas
This ensures that the selectedaccount is returned if currently selected tab is a messageviewer. This also makes it more extensible for adding other ways of getting the selected account.
2019-09-29Open mailto links in a new aerc instance if needed.Reto Brunner
Aerc tries to open mailto:// links via the socket of the already running aerc instance. If no socket exists this silently errored out. This commit starts up a new aerc instance if it can't connect to the socket (which I think is the most common error) and if not sets up a new aerc instance and retries to open the compositor. This fixes https://todo.sr.ht/~sircmpwn/aerc2/295 by implementing the desired behaviour.
2019-09-29Print success to socket if no error was thrownHeiko Carrasco
When Reto Brunners patch is applied (which works really well for me), the user gets to see the message returned by AercServer. Since this is nil if no errors were thrown it prints "result: <nil>" to the cmd. This patch fixes that by just returning success instead of the error message when err != nil.
2019-09-20Config for deleting message from message viewerSrivathsan Murali
As suggested in #268, this adds a behaviour setting for deleting message from message viewer.
2019-09-20Sort path completionsJeffas
2019-09-20Change search flagsJeffas
This changes the search flags for maildir and imap backends. They now no longer use -t for searching all text. This seems to make more sense as being the targeted recipient. I have similarly added Cc for -c. The text search now resides under -a for all text.
2019-09-20Make commands join args with spacesJeffas
This patch ensures the following commands join their arguments with spaces to make it easier to interact with: - cf - mkdir - cd - attach - detach - ct - copy - move - save
2019-09-20notmuch: add sort functionalityReto Brunner
2019-09-20Add documentation for sortJeffas
This adds documentation for the config option and the command.
2019-09-20Add sorting functionalityJeffas
There is a command and config option. The criteria are a list of the sort criterion and each can be individually reversed. This only includes support for sorting in the maildir backend currently. The other backends are not supported in this patch.
2019-09-18Add directory info messagesJeffas
This populates the directory info model properly when requested, allowing the fields to be relied upon elsewhere. This also sends the dirinfo when new messages come in.
2019-09-18Focus new tab after removeJeffas
After removing a tab we should focus the newly selected tab if it is Interactive. This ensures things like the terminal get drawn properly.
2019-09-18Revert "Fix out-of-order messages by sorting as we display"Drew DeVault
This reverts commit ac99d9ed62644cf0259bdd79481b28c3fbcef650.
2019-09-16Add search documentation for maildir backendJeffas
2019-09-16Add basic searching to the maildir backendJeffas
Basic searching is supported with the following: - read messages - unread messages - from addresses - text in body - text in subject - text in all The implementation loops through all messages in the selected directory. It tries to be smart by detecting which parts of each message the search query needs to use and only loads these from the filesystem.
2019-09-16notmuch: implement ModifyLabelsReto Brunner
2019-09-16notmuch: sync maildir flagsReto Brunner
Syncs back special notmuch tag like unread to the underlying maildir store
2019-09-16notmuch: extract all notmuch db operations.Reto Brunner
For some reason the current code frequently segfaults due to an invalid C memory address. This commit mediates that by never keeping an object alive longer than absolutely necessary.
2019-09-12Add completion for copyJeffas
2019-09-12widgets: remove duplicate importWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-12Add signaturesJeffas
This adds the ability for per-account signatures in the accounts.conf config file. The signature is added to emails in the editor at the bottom of the email. This includes when forwarding, replying to, and composing emails. There are two config options: signature-file and signature-cmd. The former allows a signature to be read from a file and the latter allows an arbitrary command to be executed to return the signature. The config options have been documented in aerc-config
2019-09-12Add modify-labels commandReto Brunner
This adds the event type as well as the command implementation, but no backend supports it yet.
2019-09-11Add display of unread messages in dirlistJeffas
Add an onUpdateDirs handler. This is used to invalidate the dirlist and redraw with the correct number of recent/unread/total messages is shown. A config option and formatting options are provided.
2019-09-11Fix segfault on deleteDevon Johnson
2019-09-11Add new search behaviour for imapJeffas
This patch adds search behaviour to allow searching in the body of the messages, the entire text (body + header), and searching just the from header.
2019-09-11Check the subject line for lowercase reJeffas
This ensures that a message with e.g. "RE: " at the start won't get another "Re: ".
2019-09-11Ensure mimetype parts are converted to lower caseJeffas
This ensures that the check for a text message to use in the reply is performed (more) correctly and so uses the plaintext more often.
2019-09-11Add MouseableJeffas
This adds the Mouseable interface. When this is implemented for a component that item can accept and process mouseevents. At the top level when a mouse event is received it is passed to the grid's handler and then it trickles down until it reaches a component that can actually handle it, such as the tablist, dirlist or msglist. A mouse event is passed so that components can handle other things such as scrolling with the mousewheel. The components themselves then perform the necessary actions. Clicking emails in the messagelist opens them in a new tab. Textinputs can be clicked to position the cursor inside them. Mouseevents are not forwarded to the terminal at the moment. Elements which do not handle mouse events are not required to implement the Mouseable interface.
2019-09-11Add initial command to end of completionsJeffas
This means that if the user cycles through all completions then they will see the initial string they entered.
2019-09-04widgets: gofmtWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04widgets: rewrite references to os.SET_SEEK to io.SeekStartWagner Riffel
Os.SET_SEEK is deprecated, it's recommended to use contants from io package Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04widgets: remove redundant key check, delete is no-op if key is emptyWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04commands: move ParseNextPrevMessage error value to its last return valueWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04all: rewrite references to strings.Index to strings.ContainsWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04all: use fmt.Errorf for fomartting errorsWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04all: purge redundant underscoresWagner Riffel
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04aerc.go: simplify completionsDrew DeVault
2019-09-04aerc.go: remove unused variableDrew DeVault
2019-09-02Use sort.Stable for sorting displayed messagesa3v
With sort.Sort, sometimes two messages with the same timestamp will switch places every time the message list is redrawn