Changeset 5112:4411620e877b for imap/imap.c
- Timestamp:
- 2007-04-10 16:07:53 (21 months ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
imap/imap.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imap/imap.c
r5111 r5112 249 249 int i, cacheno; 250 250 251 #ifdef USE_HCACHE 252 imap_hcache_open (idata); 253 #endif 254 251 255 for (i = 0; i < idata->ctx->msgcount; i++) 252 256 { … … 277 281 } 278 282 } 283 284 #if USE_HCACHE 285 imap_hcache_close (idata); 286 #endif 279 287 280 288 /* We may be called on to expunge at any time. We can't rely on the caller … … 735 743 ctx->v2r = safe_calloc (count, sizeof (int)); 736 744 ctx->msgcount = 0; 737 #ifdef USE_HCACHE 738 idata->hcache = imap_hcache_open (idata, idata->ctx->path); 739 #endif 745 740 746 if (count && (imap_read_headers (idata, 0, count-1) < 0)) 741 747 { … … 1140 1146 } 1141 1147 1148 #if USE_HCACHE 1149 imap_hcache_open (idata); 1150 #endif 1151 1142 1152 /* save messages with real (non-flag) changes */ 1143 1153 for (n = 0; n < ctx->msgcount; n++) … … 1175 1185 } 1176 1186 1187 #if USE_HCACHE 1188 imap_hcache_close (idata); 1189 #endif 1190 1177 1191 /* sync +/- flags for the five flags mutt cares about */ 1178 1192 rc = 0; … … 1308 1322 } 1309 1323 1310 #ifdef USE_HCACHE1311 mutt_hcache_close (idata->hcache);1312 idata->hcache = NULL;1313 #endif1314 1324 mutt_bcache_close (&idata->bcache); 1315 1325
