-mx_t* imap_reg_mx (void) {
- mx_t* fmt = safe_calloc (1, sizeof (mx_t));
+static int imap_open_new_message (MESSAGE * msg,
+ CONTEXT * dest __attribute__ ((unused)),
+ HEADER * hdr __attribute__ ((unused)))
+{
+ char tmp[_POSIX_PATH_MAX];
+
+ mutt_mktemp (tmp);
+ if ((msg->fp = safe_fopen (tmp, "w")) == NULL) {
+ mutt_perror (tmp);
+ return (-1);
+ }
+ msg->path = m_strdup(tmp);
+ return 0;
+}