]> granicus.if.org Git - neomutt/commitdiff
Don't unlink attachments that you've decided not to send. (closes #1328)
authorBrendan Cully <brendan@kublai.com>
Tue, 2 Aug 2005 01:13:25 +0000 (01:13 +0000)
committerBrendan Cully <brendan@kublai.com>
Tue, 2 Aug 2005 01:13:25 +0000 (01:13 +0000)
compose.c

index 6f34bf683b82cca0425767ee6c76039c3091ad6e..eab1b26b16cc3c83b847294cb0cf3341bdf8e741 100644 (file)
--- 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);