push username, homedir and tmpdir in lua too.
[apps/madmutt.git] / imap / imap.c
index e54b81f..6a84d94 100644 (file)
@@ -1600,7 +1600,7 @@ static int imap_open_new_message (MESSAGE * msg,
 {
     char tmp[_POSIX_PATH_MAX];
 
-    msg->fp = m_tempfile(tmp, sizeof(tmp), NONULL(Tempdir), NULL);
+    msg->fp = m_tempfile(tmp, sizeof(tmp), NONULL(MCore.tmpdir), NULL);
     if (!msg->fp) {
         mutt_perror(tmp);
         return -1;