From: Thomas Roessler Date: Fri, 18 Dec 1998 10:22:59 +0000 (+0000) Subject: Catch an error condition when synchronizing mh messages. X-Git-Tag: archive/mutt-0-95-exp~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4980993bd3948dfada400d66db0c942de78cb264;p=mutt Catch an error condition when synchronizing mh messages. --- diff --git a/mh.c b/mh.c index 4e5714eb..f8e2de30 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); }