ctx = idata->ctx;
-#if USE_HCACHE
- hc = mutt_hcache_open (HeaderCache, ctx->path);
-#endif /* USE_HCACHE */
-
if (mutt_bit_isset (idata->capabilities,IMAP4REV1))
{
snprintf (hdrreq, sizeof (hdrreq), "BODY.PEEK[HEADER.FIELDS (%s%s%s)]",
{ /* Unable to fetch headers for lower versions */
mutt_error _("Unable to fetch headers from this IMAP server version.");
mutt_sleep (2); /* pause a moment to let the user see the error */
-#if USE_HCACHE
- mutt_hcache_close (hc);
-#endif /* USE_HCACHE */
return -1;
}
{
mutt_error (_("Could not create temporary file %s"), tempfile);
mutt_sleep (2);
-#if USE_HCACHE
- mutt_hcache_close (hc);
-#endif /* USE_HCACHE */
return -1;
}
unlink (tempfile);
idata->newMailCount = 0;
#if USE_HCACHE
+ hc = mutt_hcache_open (HeaderCache, ctx->path);
+
snprintf (buf, sizeof (buf),
"FETCH %d:%d (UID FLAGS)", msgbegin + 1, msgend + 1);
fetchlast = msgend + 1;
{
imap_free_header_data ((void**) &h.data);
fclose (fp);
- mutt_hcache_close (hc);
+ mutt_hcache_close (hc);
return -1;
}
}
imap_free_header_data ((void**) &h.data);
fclose (fp);
#if USE_HCACHE
- mutt_hcache_close (hc);
+ mutt_hcache_close (hc);
#endif /* USE_HCACHE */
return -1;
}