highlight_self flag was not shown if row had the maximum amount of
visible flags in the current page, because the width of the highlight_self
flag was not taken into account for the maximum column width.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
GROUP was sent before ARTICLE every time even if the group was already
selected. Use Connection's `select_group` method that makes sure the
group is not re-selected needlessly.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Populating the message sequence number runtime store is not performed in
order, so inserting UIDs in a vec can fail when we want to insert a
number higher than the current maximum. This could lead to panics when
inserting to a vec at an index above its length.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Some tests needs a standalone environment because they mess with
variables that other tests need too. sealed_test runs the tests in a
forked process so that there are no issues with that.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Home/End count as page/scroll movements, but they'd not clear the
modifier buffer since they weren't using it.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Dialog widgets require their parent components to handle their
ComponentUnrealize events, otherwise they'd not be removed if user
selects 'Cancel'.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Databases described by `DatabaseDescription` are created in XDG Data
directories by default. Add an optional explicit directory field so that
tests and other API consumers can override that location.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Use File::options()..create_new() to avoid overwriting files when saving
attachments or exporting stuff.
File::create_new was added in 1.77 which is after our current MSRV, so
use OpenOptions instead.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Add support for searching by Message-ID, In-Reply-To, References, or any
header with the following keywords:
- "message-id:term", "msg-id:term"
- "in-reply-to:term"
- "references:term"
- "header:title,value"
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Print clickable path links when printings paths via subcommands like
print-log-path.
Part of #445 ("Add OSC8 terminal hyperlink support")
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
This release solves a clippy lint warning for code that will get
introduced in the next commit.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Add an ErrorChainDisplay struct that borrows an error and prints the
list of chained errors one by one, showing relationships and metadata
for each error.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
Crate regex is used by default in builds, so there's no need for an
optional libpcre2 dependency
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
NOTMUCH_ERROR_DETAILS was defined twice for macos from "unix"
target_family and target_os = "macos".
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
When 401 is returned by an HTTP server, the WWW-Authenticate header must
be present. The values represent the supported Authentication schemes of
the server.
This commit detects them and reports the appropriate error to the user.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>