X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=postpone.c;h=bee469022b6b61cd3e37f9d4ab4f1f7851c3139a;hp=acaddb86b3773534b9f1ee6ff4d2c491a5c34b2b;hb=0cdfadc00f3db981c5fccbd654c4a19becf42ef7;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/postpone.c b/postpone.c index acaddb8..bee4690 100644 --- a/postpone.c +++ b/postpone.c @@ -18,15 +18,17 @@ #include "mime.h" #include "mapping.h" #include "sort.h" -#ifdef USE_IMAP #include "mx.h" +#ifdef USE_IMAP #include "imap.h" +#include "imap/mx_imap.h" #endif #include "mutt_crypt.h" #include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" +#include "lib/debug.h" #include #include @@ -75,22 +77,17 @@ int mutt_num_postponed (int force) #ifdef USE_IMAP /* LastModify is useless for IMAP */ - if (mx_is_imap (Postponed)) { + if (imap_is_magic (Postponed, NULL) == M_IMAP) { if (force) { short newpc; newpc = imap_mailbox_check (Postponed, 0); if (newpc >= 0) { PostCount = newpc; - dprint (2, - (debugfile, - "mutt_num_postponed: %d postponed IMAP messages found.\n", - PostCount)); + debug_print (2, ("%d postponed IMAP messages found.\n", PostCount)); } else - dprint (2, - (debugfile, - "mutt_num_postponed: using old IMAP postponed count.\n")); + debug_print (2, ("using old IMAP postponed count.\n")); } return PostCount; }