From: Brendan Cully Date: Thu, 4 Aug 2005 01:15:52 +0000 (+0000) Subject: Don't unlink non-mutt files that would have been unlinked on send if the X-Git-Tag: mutt-1-5-10-rel~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c9b67ef072084c89ae2f5dd5f629182411752c1;p=mutt Don't unlink non-mutt files that would have been unlinked on send if the message is cancelled. --- diff --git a/compose.c b/compose.c index 8f216d4f..205d04ec 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]);