Changeset 5112:4411620e877b for imap/util.c
- Timestamp:
- 2007-04-10 16:07:53 (21 months ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
imap/util.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imap/util.c
r5111 r5112 72 72 73 73 #ifdef USE_HCACHE 74 header_cache_t* imap_hcache_open (IMAP_DATA* idata, const char* path)74 int imap_hcache_open (IMAP_DATA* idata) 75 75 { 76 76 IMAP_MBOX mx; … … 78 78 char cachepath[LONG_STRING]; 79 79 80 if (imap_parse_path ( path, &mx) < 0)81 return NULL;80 if (imap_parse_path (idata->ctx->path, &mx) < 0) 81 return -1; 82 82 83 83 mutt_account_tourl (&idata->conn->account, &url); … … 86 86 FREE (&mx.mbox); 87 87 88 return mutt_hcache_open (HeaderCache, cachepath); 88 idata->hcache = mutt_hcache_open (HeaderCache, cachepath); 89 90 return idata->hcache != NULL ? 0 : -1; 91 } 92 93 void imap_hcache_close (IMAP_DATA* idata) 94 { 95 if (!idata->hcache) 96 return; 97 98 mutt_hcache_close (idata->hcache); 99 idata->hcache = NULL; 89 100 } 90 101
