/* simple, editor-based message editing */
#include <lib-lib/lib-lib.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
#include <lib-mx/mx.h>
#include "mutt.h"
{
char tmp[_POSIX_PATH_MAX];
char buff[STRING];
- int omagic;
int oerrno;
int rc;
mutt_mktemp (tmp);
- omagic = DefaultMagic;
- DefaultMagic = M_MBOX;
-
- rc = (mx_open_mailbox (tmp, M_NEWFOLDER, &tmpctx) == NULL) ? -1 : 0;
-
- DefaultMagic = omagic;
+ rc = (mx_open_mailbox(tmp, M_NEWFOLDER, &tmpctx) == NULL) ? -1 : 0;
if (rc == -1) {
mutt_error (_("could not create temporary folder: %s"), strerror (errno));