Commit 348139b2 authored by Thomas Roessler's avatar Thomas Roessler

Fix attachment deletion for maildir/mh folders. This may fix other

mh-related problems, too.
parent c305062d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment