]> granicus.if.org Git - neomutt/commitdiff
Don't unlink non-mutt files that would have been unlinked on send if the
authorBrendan Cully <brendan@kublai.com>
Thu, 4 Aug 2005 01:15:52 +0000 (01:15 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 4 Aug 2005 01:15:52 +0000 (01:15 +0000)
message is cancelled.

compose.c

index 8f216d4f22355027fab8ffd188ca4cf0ad36d990..205d04ec147ca8eb8f2097d35d7bf670bff9c450 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1146,6 +1146,8 @@ int mutt_compose_menu (HEADER *msg,   /* structure for new message */
            /* avoid freeing other attachments */
            idx[idxlen]->content->next = NULL;
            idx[idxlen]->content->parts = NULL;
+            if (idx[idxlen]->unowned)
+              idx[idxlen]->content->unlink = 0;
            mutt_free_body (&idx[idxlen]->content);
            FREE (&idx[idxlen]->tree);
            FREE (&idx[idxlen]);