]> granicus.if.org Git - mutt/commitdiff
Report error creating FCC when writing to IMAP server. Addresses #423.
authorBrendan Cully <brendan@kublai.com>
Mon, 1 Aug 2005 04:57:04 +0000 (04:57 +0000)
committerBrendan Cully <brendan@kublai.com>
Mon, 1 Aug 2005 04:57:04 +0000 (04:57 +0000)
mx.c

diff --git a/mx.c b/mx.c
index 0c1b2ac50d15af694c2aac0aa074c8985759451c..c75ccc6bd6fff1f3ef39b59faa493f6f2ee41340 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -1240,7 +1240,10 @@ int imap_open_new_message (MESSAGE *msg, CONTEXT *dest, HEADER *hdr)
 
   mutt_mktemp(tmp);
   if ((msg->fp = safe_fopen (tmp, "w")) == NULL)
+  {
+    mutt_perror (tmp);
     return (-1);
+  }
   msg->path = safe_strdup(tmp);
   return 0;
 }