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