Rocco Rutte:
[apps/madmutt.git] / postpone.c
index db84a32..264e9dc 100644 (file)
 #include "mutt_menu.h"
 #include "rfc1524.h"
 #include "mime.h"
 #include "mutt_menu.h"
 #include "rfc1524.h"
 #include "mime.h"
-#include "mailbox.h"
 #include "mapping.h"
 #include "sort.h"
 #include "mapping.h"
 #include "sort.h"
-#ifdef USE_IMAP
 #include "mx.h"
 #include "mx.h"
+#ifdef USE_IMAP
 #include "imap.h"
 #endif
 #include "mutt_crypt.h"
 #include "imap.h"
 #endif
 #include "mutt_crypt.h"
@@ -76,7 +75,7 @@ int mutt_num_postponed (int force)
 
 #ifdef USE_IMAP
   /* LastModify is useless for IMAP */
 
 #ifdef USE_IMAP
   /* LastModify is useless for IMAP */
-  if (mx_is_imap (Postponed)) {
+  if (mx_get_magic (Postponed) == M_IMAP) {
     if (force) {
       short newpc;
 
     if (force) {
       short newpc;