Rocco Rutte:
[apps/madmutt.git] / send.c
diff --git a/send.c b/send.c
index 22d4c90..6f988dd 100644 (file)
--- a/send.c
+++ b/send.c
@@ -16,7 +16,6 @@
 #include "rfc2047.h"
 #include "keymap.h"
 #include "mime.h"
-#include "mailbox.h"
 #include "copy.h"
 #include "mx.h"
 #include "mutt_crypt.h"
@@ -1663,7 +1662,7 @@ int ci_send_message (int flags, /* send mode */
    */
 
 #ifdef USE_IMAP
-  if ((flags & SENDBATCH) && fcc[0] && mx_is_imap (fcc))
+  if ((flags & SENDBATCH) && fcc[0] && mx_get_magic (fcc) == M_IMAP)
     fcc[0] = '\0';
 #endif