aerc/lib
Koni Marti 5c5158b3c1 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>
2022-05-06 11:02:33 +02:00
..
crypto pgp: fix crash on gpg decrypt fail 2022-05-04 14:10:32 +02:00
format dirlist: add format specifier to compact folder name 2022-04-29 13:41:38 +02:00
sort go.mod: change base git url 2021-11-05 10:21:45 +01:00
statusline statusline: refactor to make it more customizable 2022-04-25 11:21:07 +02:00
templates config: do not hardcode sharedir 2022-02-19 15:24:55 +01:00
ui grid: don't draw at a negative offset 2022-04-28 17:56:37 +02:00
uidstore Create UIDStore package 2019-07-12 11:09:47 -04:00
dirstore.go Move msgstore map to dirstore 2019-07-26 14:15:27 -04:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
keepalive_dummy.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
keepalive_linux.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
messageview.go refactor: refactor pgp implementation 2022-04-27 09:46:11 +02:00
msgstore.go store: remove callbacks on error 2022-05-06 11:02:33 +02:00
oauthbearer.go Add oauthbearer support for SMTP 2020-08-13 07:44:43 +02:00
open.go logging: added a log on panic 2022-03-23 20:56:09 +01:00
socket.go logging: added a log on panic 2022-03-23 20:56:09 +01:00
structure_helpers.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
threadbuilder.go threading: fix msg-id order in references header 2022-03-23 20:56:47 +01:00