diff options
author | Brendan Cully <brendan@kublai.com> | 2005-08-04 01:15:52 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2005-08-04 01:15:52 +0000 |
commit | 9c9b67ef072084c89ae2f5dd5f629182411752c1 (patch) | |
tree | edce7ef587813f64237f39da00f2717aa6a0eff3 /compose.c | |
parent | 7a5fe4f91386dbecd7e4954cba0e13ff9293f5a8 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]); |