Begin to work on a pop reimplementation, using jobs and the event loop
[apps/madmutt.git] / lib-mx / mx.c
index 1d0e8d7..79eaad0 100644 (file)
@@ -42,6 +42,9 @@ static mx_t const *mxfmts[] = {
     &imap_mx,
     &pop_mx,
     &compress_mx,
+
+    /* hack so that it's linked together */
+    &pop_mx_ng,
 };
 
 #define MX_IDX(idx)          (idx >= 0 && idx < countof(mxfmts))
@@ -516,7 +519,7 @@ static int _mx_close_mailbox (CONTEXT * ctx, int *index_hint)
     /* try to use server-side copy first */
     i = 1;
 
-    if (ctx->magic == M_IMAP && imap_is_magic (mbox, NULL) == M_IMAP) {
+    if (ctx->magic == M_IMAP && imap_mx.mx_is_magic (mbox, NULL) == M_IMAP) {
       /* tag messages for moving, and clear old tags, if any */
       for (i = 0; i < ctx->msgcount; i++)
         if (ctx->hdrs[i]->read && !ctx->hdrs[i]->deleted