Rocco Rutte:
[apps/madmutt.git] / rfc3676.c
index 805ff71..9b626ce 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -256,7 +256,8 @@ void rfc3676_space_stuff (HEADER* hdr) {
     fputs (buf, out);
   }
   fclose (in);
-  unlink (hdr->content->filename);
   fclose (out);
+  mutt_set_mtime (hdr->content->filename, tmpfile);
+  unlink (hdr->content->filename);
   str_replace (&hdr->content->filename, tmpfile);
 }