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

Re: mutt/2165: esmtp patch: leftover temp files



http%3A%2F%2Fbugs.mutt.org%2Fcgi-bin%2Fgnatsweb.pl%3Fcmd%3Dview%2520audit-trail%26database%3Dmutt%26pr%3D2165

Never mind my comments about non-uniformity.. (sorry!)
This patch should fix it.

Cheers,
Ralf

        * smtp.c (smtp_data): Unlink msgfile as early as possible.

--- smtp.c.orig 2006-01-16 16:26:19.000000000 +0100
+++ smtp.c      2006-01-16 16:26:21.000000000 +0100
@@ -153,6 +153,7 @@
     return -1;
   }
   stat (msgfile, &st);
+  unlink (msgfile);
   progress.msg = _("Sending message...");
   progress.size = st.st_size;
   mutt_progress_bar (&progress, 0);