From 9a2ed84fc67a5d31ff7c9ddb2047513f70abdf86 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Thu, 4 Aug 2005 01:15:52 +0000 Subject: [PATCH] Don't unlink non-mutt files that would have been unlinked on send if the message is cancelled. --- compose.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose.c b/compose.c index 8f216d4f2..205d04ec1 100644 --- 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]); -- 2.40.0