summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-30Revert "Implement style configuration."Reto Brunner
This reverts commit 1ff687ca2b0821c2cacc1fa725abb3302d2af9da.
2020-07-30Revert "Rename selecter to selector"Reto Brunner
This reverts commit 2c244222d508a32d3f5ba600944a46b6fdea1a10.
2020-07-30Rename selecter to selectorKalyan Sriram
2020-07-30Implement style configuration.Kalyan Sriram
Introduce the ability to configure stylesets, allowing customization of aerc's look (color scheme, font weight, etc). Default styleset is installed to /path/to/aerc/stylesets/default.
2020-07-30msgviewer: set max line length to 1 GBReto Brunner
some people send around huge html without any newline in between. This did overflow the default 64KB buffer of bufio.Scanner. If something can't fit in a GB there's no hope left Also, ignoring errors is bad mkey
2020-07-30msgviewer: simplify attemptCopyReto Brunner
No functional changes, simply extract more complex stuff into sub functions to help readability.
2020-07-29Update .build.ymlDrew DeVault
2020-07-27maildir: Provide nicer error message on invalid urlTero Koskinen
If accounts.conf contains an invalid maildir url, return a nice error instead of panicking. Log a couple of different error cases to provide extra information about the error to the user.
2020-07-27Remove hard coded bodystruct path everywhereReto Brunner
Aerc usually used the path []int{1} if it didn't know what the proper path is. However this only works for multipart messages and breaks if it isn't one. This patch removes all the hard coding and extracts the necessary helpers to lib.
2020-07-25Add flag based search optionsTobias Wölfel
Provide search and filter with the option to specify more flag based conditions. Use '-x <flag>' to search for messages with a flag (seen, answered, flagged) and '-X <flag>' to search for messages without a flag.
2020-07-19Only send directory info once from maildirAndrew Jeffery
The directory info only needs to be sent once for all the messages, this reduces unnecessary messages being sent which could lock up the ui.
2020-07-19Document mailto argument usageTobias Wölfel
2020-07-17run go fmtReto Brunner
2020-07-11Make it easier to debug date parsing errorsLyudmil Angelov
When message dates failed to parse, the error displayed would try to include the time object it failed to obtain, which would display as something like 0001-01-01 00:00:00 UTC, which isn't of much help. Instead, display the text we were trying to parse into a date, which makes the problem easier to debug.
2020-07-10Remove deleted messages from search/filter resultsAndrew Jeffery
This ensures that when moving/deleting messages with a filter active the view gets updated properly.
2020-07-09Use PushStatus instead of SetStatus where it makes senseHeiko Carrasco
2020-07-09Update go-message, fixes various bugsReto Brunner
Changelog: d262af7 (tag: v0.12.0) textproto: check header characters 5b97b1b Remove hz-gb-2312 encoding as it can crash 0e60ea0 writer: add Mime-Version header when missing c512562 textproto: add Header.Raw and HeaderFields.Raw 4af4c77 textproto: Add HeaderFields.Len f828d02 Add test converting an Entity to quoted-printable 8c6ac6b Add CreateInlineWriter to get a writer that allows alternatives, but no attachments. fee642d (tag: v0.11.2) Fix incorrect line folding of RFC2047-encoded strings 9c4415e textproto: add limits for header field length and total amount of fields 46fe03d mail: add Message-Id test with IPv6 address 6c32091 textproto: add MultipartReader tests 9ce1b6f textproto: remove unused skipSpace function a41879c mail: add tests for Header.{MessageID,MsgIDList} 82eb31c mail: add Header.MessageID and Header.MsgIDList 7e482a2 mail: add headerParser 40e7be6 textproto: minor doc improvements f119d5f readme: remove stability badge e48b6c5 mail: minor comments and docs improvements 8ade7dd textproto: add error on invalid header key
2020-07-08Add additional flagging functionalityARaspiK
More mail flags can now be set, unset, and toggled, not just the read/seen flag. This functionality is implemented with a new `:flag` and `:unflag` command, which are extensions to the matching `:read` and `:unread` commands, adding support for different flags. In fact, the `read`/`unread` commands are now recognized aliases to `flag`/`unflag`. The new commands are also well documented in aerc(1). The change mostly extends the previous read/unread setting functionality by adding a selection for the flag to change.
2020-07-08Allow open to be asynchronousAndrew Jeffery
This stops the ui being blocked while the resource is opened. The wait ensures that resources are reclaimed when the process finishes while aerc is still running.
2020-07-08notmuch: fix docstringReto Brunner
2020-07-05notmuch: handle the answered flagReto Brunner
2020-07-05Fix usage of DESTDIRBen Fiedler
It should only be used when installing/uninstalling according to the GNU spec. Closes: https://todo.sr.ht/~sircmpwn/aerc2/418
2020-07-05pipe: don't crash if part is nilReto Brunner
2020-07-05Format config path in READMEGabriel Augendre
2020-07-05status: invalidate when neededReto Brunner
In order for the message to actually show up we need to invalidate after setting the status stack.
2020-07-05delete: push unsupported error up to the userReto Brunner
2020-07-03Fix a nil Envelope when getting the formatAndrew Jeffery
When getting the format for a message the envelope can be nil and this shouldn't crash the program.
2020-07-02Add a 'folders-exclude' optionARaspiK
Added a 'folders-exclude' option that allows removing selected folders from the directory list sidebar. My motivating example was that removing a single folder from the list using Golang regexes seemed pretty hard, so this is a better way to do it. The excluded folders list is included in the man page.
2020-07-02Fix nil pointer deref on EnvelopeAndrew Jeffery
The Envelope was nil but being deref'ed for the Subject. This was experienced when switching tabs on IMAP.
2020-06-26Fix dates in reply/forward commands.Reto Brunner
The data was passed around as a string for some reason, which led to time precision loss and wrong dates being displayed. Simply pass the time as is to fix that.
2020-06-13Fix missing escape in aerc-config manpageAlexander Harkness
Underscores were being elided by scdoc when they should have been rendered verbatim in the output.
2020-06-13Sort command completionsJeffas
Previously the completions weren't sorted which led to a difficult to navigate list, especially for the command names as it would randomly jump through the alphabet.
2020-06-09Add scrollbarJeffas
This transplants the logic for drawing the scrollbar from dirlist and the completion popover and adds it to the msglist.
2020-06-09Rework msglist scrollingJeffas
This changes the scrolling to be done on the draw, when the height is updated, ensuring that the selected item is kept on screen during resizing. Also, this ensures that messages will fill the screen when resizing the window, for instance, shrinking and then growing drags down more messages if possible. This is a transplant of the dirlist scrolling logic.
2020-06-09Add dirlist scrollbarJeffas
This mimics the scrollbar implementation from the completion popover. Only showing it when necessary and adapting the dirlist strings appropriately.
2020-06-09Make grid sizes dynamicJeffas
The grid used static sizes which meant that changing settings didn't have an effect on elements of the ui, notably the sidebar width. This patch makes the `Size` parameter of a cell a function which returns the `int`, allowing for dynamic sizes. A `Const` function is also included for ease of use for static sizes.
2020-06-09Add dirlist scrollingJeffas
Should fix #402
2020-06-09Fix search documentationJeffas
The documentation for searching in IMAP and Maildir was out of date. This updates it to be more representative of what the options now do.
2020-05-28Revert "Add Style configuration"Drew DeVault
This reverts commit 0f78f06610c0e8887aba2ae50e99b86477a384b3.
2020-05-28Revert "Remove duration from the status methods"Drew DeVault
This reverts commit f06d683688e3d2139b14f67b7e349089e7200bf4.
2020-05-28Revert "Make color scheme match previous design more closely"Drew DeVault
This reverts commit 7832eb6fd7836d5108d7a005dad96d92a79e15e7.
2020-05-27Make color scheme match previous design more closelyReto Brunner
2020-05-27Remove duration from the status methodsReto Brunner
We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
2020-05-27Add Style configurationReto Brunner
The following functionalities are added to configure aerc ui styles. - Read stylesets from file with very basic fnmatch wildcard matching - Add default styleset - Support different stylesets as part of UiConfig allowing contextual styles. - Move widgets/ui elements to use the stylesets. - Add configuration manual for the styleset
2020-05-26notmuch: undefined variable when setting reply flagSrivathsan Murali
2020-05-25Set AnsweredFlag on successful replySrivathsan Murali
2020-05-25aerc: Refactor getpasswd dialogRay Ganardi
Previously there's a hack for showing and hiding the dialog. Change it to use channels to emulate async/await
2020-05-25feat(pgp): Show error message from pgpRay Ganardi
The error wasn't shown, making errors like wrong password being ignored and the password is prompted again.
2020-05-25feat(pgp): Add <ESC> to cancel password promptRay Ganardi
Previously there was no way to cancel the password prompt.
2020-05-25pgp: fail gracefully from email decryptionRay Ganardi
Aerc panics when there's an error on email decryption. Instead, an error message should be shown.