]> granicus.if.org Git - neomutt/commitdiff
Catch an error condition when synchronizing mh messages.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 18 Dec 1998 10:22:59 +0000 (10:22 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 18 Dec 1998 10:22:59 +0000 (10:22 +0000)
mh.c

diff --git a/mh.c b/mh.c
index 4e5714eb589f5da4aceaa08d6e3d9d0b25f71760..f8e2de301b18f7c84a57c2d74e2d7bacbbb0f337 100644 (file)
--- 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);
       }