aerc/lib
Koni Marti f6e34e4cf1 imap: fix no-envelope-for-message error
Fix the "no envelope available for this message" error that can occur
when using the same imap mailbox in another mailclient (e.g.
through a webmail interface) at the same time.

Complements the fixes in commit 7fe7fe4 ("ui: fix panic in header
formatter") and commit 074b0a1 ("view,list: fix crash when viewing
incomplete imap messages").

The error is caused when a message attribute update is received by the
message store before the message list had a chance to fetch the proper
header first. In this case, an (incomplete) message info is stored in
the message store and the message list will never fetch the correct
header. To prevent this, add only messages to the store with a non-nil
envelope but make sure that message attribute updates are properly
merged.

Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-04-11 12:06:53 +02:00
..
format messages: allow displaying email threads 2021-11-13 15:05:59 +01:00
sort go.mod: change base git url 2021-11-05 10:21:45 +01:00
statusline statusline: indicate when sorting is in progress 2022-03-25 13:07:25 +01:00
templates config: do not hardcode sharedir 2022-02-19 15:24:55 +01:00
ui completion: install panic handler in completion callback 2022-03-25 13:03:04 +01: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
keystore.go pgp: PGP/MIME encryption for outgoing emails 2022-01-07 13:45:34 +01:00
messageview.go pgp: update openpgp packages (go-crypto and go-pgpmail) 2022-01-07 13:45:34 +01:00
msgstore.go imap: fix no-envelope-for-message error 2022-04-11 12:06:53 +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