<<< Date Index >>>     <<< Thread Index >>>

compose.c,v 3.23



>       * compose.c: Don't unlink attachments that you've decided
>       not to send. (closes #1328)

--- compose.c   3 Feb 2005 17:01:42 -0000       3.22
+++ compose.c   2 Aug 2005 01:13:25 -0000       3.23
@@ -814,6 +814,7 @@
 
       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);


This will leak temporary files generated by mutt when somebody
deletes, e.g., the body.  I would prefer to back out this change.

Regards,
-- 
Thomas Roessler · Personal soap box at <http://log.does-not-exist.org/>.