From: Brendan Cully Date: Tue, 2 Aug 2005 01:13:25 +0000 (+0000) Subject: Don't unlink attachments that you've decided not to send. (closes #1328) X-Git-Tag: mutt-1-5-10-rel~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b0f9878c2299fa7dea81233df7bf1503bdd0fd7;p=mutt Don't unlink attachments that you've decided not to send. (closes #1328) --- diff --git a/compose.c b/compose.c index 6f34bf68..eab1b26b 100644 --- a/compose.c +++ b/compose.c @@ -814,6 +814,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ case OP_DELETE: CHECK_COUNT; + idx[menu->current]->content->unlink = 0; if (delete_attachment (menu, &idxlen, menu->current) == -1) break; mutt_update_tree (idx, idxlen);