From 38d1b074fe2b1f14c2f54ad15d155b9b5dd1df24 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 18 Dec 1998 10:22:59 +0000 Subject: [PATCH] Catch an error condition when synchronizing mh messages. --- mh.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mh.c b/mh.c index 4e5714eb5..f8e2de301 100644 --- a/mh.c +++ b/mh.c @@ -402,6 +402,16 @@ static int mh_sync_message (CONTEXT *ctx, int msgno) } else { + /* mutt_copy_message() will have changed + * some of the internal state of the message, + * but we can't commit it here. + * + * Reparse later. + * + */ + + mutt_free_body (&h->content->parts); + fclose (f); return (-1); } -- 2.40.0