]> granicus.if.org Git - mutt/commitdiff
Fix attachment deletion for maildir/mh folders. This may fix other
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 17 Dec 1998 16:16:58 +0000 (16:16 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 17 Dec 1998 16:16:58 +0000 (16:16 +0000)
mh-related problems, too.

mh.c

diff --git a/mh.c b/mh.c
index e5c3c04e8fba97a83d02a5ca3fc6437926277cdc..4e5714eb589f5da4aceaa08d6e3d9d0b25f71760 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -393,6 +393,7 @@ static int mh_sync_message (CONTEXT *ctx, int msgno)
     if ((f = freopen (newpath, "r", f)) != NULL)
     {
       unlink (newpath);
+      unlink (oldpath);
       if ((d = mx_open_file_lock (oldpath, "w")) != NULL)
       {
        mutt_copy_stream (f, d);