X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-mx%2Fmx.c;h=79eaad0ee5b43d8bb6dc14ed33329a75f4a94f48;hb=88d239144bf6f50ca1eda6db7742281f0ad0f97f;hp=1d0e8d770293ea44f28811c6f7c94f74bf31b173;hpb=8297f3a57ccff9c0663551658cdd5d3bf166249d;p=apps%2Fmadmutt.git diff --git a/lib-mx/mx.c b/lib-mx/mx.c index 1d0e8d7..79eaad0 100644 --- a/lib-mx/mx.c +++ b/lib-mx/mx.c @@ -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