summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-08-02 01:13:25 +0000
committerBrendan Cully <brendan@kublai.com>2005-08-02 01:13:25 +0000
commit2b0f9878c2299fa7dea81233df7bf1503bdd0fd7 (patch)
tree7377b050d25e74993247e326ada8bca426831b4d /compose.c
parent6777c1a623eb1a26392c61355cdf1b6f3915a59e (diff)
Don't unlink attachments that you've decided not to send. (closes #1328)
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c1
1 files changed, 1 insertions, 0 deletions
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);