diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-05-05 03:28:41 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-06 11:02:33 +0200 |
commit | 5c5158b3c1275a11b66687496706372c01f66817 (patch) | |
tree | e4a1b60b8f05da88bb972a2805ac35645e37ac3e /lib/crypto/gpg/gpgbin/keys.go | |
parent | ad51cb3611d0799a5cef03083f20b6b85c795f23 (diff) | |
download | aerc-5c5158b3c1275a11b66687496706372c01f66817.tar.gz |
store: remove callbacks on error
Unmark deleted messages and remove pending headers in the callback
function when an error in the backend occurs (e.g. due to connection
issues).
The message store marks messages that should be deleted. If the delete
operation in the backend fails, messages are never unmarked and will
remain rendered as empty lines in the message list. This also affects
the move and archive commands that rely on a copy and delete operation.
A similar issue occurs with the pending headers when the operation to
fetch them fails. In this case, messages will appear as loading
indefinitely in the message list and are never re-fetched because the
corresponding pending headers from the failed operations are still
present.
Fixes: https://todo.sr.ht/~rjarry/aerc/28
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/crypto/gpg/gpgbin/keys.go')
0 files changed, 0 insertions, 0 deletions