summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2005-08-04 01:15:52 +0000
committerBrendan Cully <brendan@kublai.com>2005-08-04 01:15:52 +0000
commit9c9b67ef072084c89ae2f5dd5f629182411752c1 (patch)
treeedce7ef587813f64237f39da00f2717aa6a0eff3 /compose.c
parent7a5fe4f91386dbecd7e4954cba0e13ff9293f5a8 (diff)
Don't unlink non-mutt files that would have been unlinked on send if the
message is cancelled.
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c2
1 files changed, 2 insertions, 0 deletions
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]);