X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=editmsg.c;h=41895aac8700c92f3646a451fca20b2223aabbb5;hp=ec458a56fb0cc481baa198d11273c7147c70507c;hb=88d239144bf6f50ca1eda6db7742281f0ad0f97f;hpb=0ab517261694b001d2eb17f06f167a4cdd2c7c07;ds=sidebyside diff --git a/editmsg.c b/editmsg.c index ec458a5..41895aa 100644 --- a/editmsg.c +++ b/editmsg.c @@ -10,7 +10,7 @@ /* simple, editor-based message editing */ #include -#include +#include #include #include "mutt.h" @@ -28,7 +28,6 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur) { char tmp[_POSIX_PATH_MAX]; char buff[STRING]; - int omagic; int oerrno; int rc; @@ -48,12 +47,7 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur) 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));