#include "dotlock.h"
#include <imap/imap.h>
-#include <imap/mx_imap.h>
-
#include <pop/pop.h>
-#include <pop/mx_pop.h>
#ifdef USE_NNTP
-#include "nntp/nntp.h"
-#include "nntp/mx_nntp.h"
+#include <nntp/nntp.h>
#endif
#include <lib-crypt/crypt.h>
static void mx_unlink_empty (const char *path)
{
int fd;
- struct stat sb;
if ((fd = open (path, O_RDWR)) == -1)
return;
p_delete(&ctx->hdrs);
p_delete(&ctx->v2r);
- if (ctx->compressinfo)
+ if (ctx->cinfo)
mutt_fast_close_compressed (ctx);
p_delete(&ctx->path);
/* the 1 is only of interest for IMAP and means EXPUNGE */
rc = mxfmts[ctx->magic-1]->mx_sync_mailbox(ctx,1,index_hint);
- if (rc == 0 && ctx->compressinfo)
+ if (rc == 0 && ctx->cinfo)
return mutt_sync_compressed (ctx);
return rc;
!mutt_is_spool (ctx->path) && !option (OPTSAVEEMPTY))
mx_unlink_empty (ctx->path);
- if (ctx->compressinfo && mutt_slow_close_compressed (ctx))
+ if (ctx->cinfo && mutt_slow_close_compressed (ctx))
return (-1);
mx_fastclose_mailbox (ctx);
/* check for new mail */
int mx_check_mailbox (CONTEXT * ctx, int *index_hint, int lock) {
- if (ctx->compressinfo)
+ if (ctx->cinfo)
return mutt_check_mailbox_compressed (ctx);
if (ctx) {