int crc = 0;
crc = crc32(crc, "madmutt.2007.05.13", m_strlen("madmutt.2007.05.13"));
-#ifdef HAVE_LANGINFO_CODESET
- crc = crc32(crc, MCharset.charset, m_strlen(MCharset.charset));
+#ifdef HAVE_LANGINFO_H
+ crc = crc32(crc, mod_cset.charset, m_strlen(mod_cset.charset));
#endif
crc = crc32(crc, "USE_POP", m_strlen("USE_POP"));
crc = crc32(crc, "MIXMASTER", m_strlen("MIXMASTER"));
dump_cstr(buf, e->newsgroups);
dump_cstr(buf, e->xref);
dump_cstr(buf, e->followup_to);
- dump_cstr(buf, e->x_comment_to);
#endif
dump_list(buf, e->references);
d = restore_cstr(d, &e->newsgroups);
d = restore_cstr(d, &e->xref);
d = restore_cstr(d, &e->followup_to);
- d = restore_cstr(d, &e->x_comment_to);
#endif
d = restore_list(d, &e->references);
/* }}} */
-hcache_t *mutt_hcache_open(const char *path, const char *folder)
+hcache_t *mutt_hcache_open(const char *folder)
{
- hcache_t *h = p_new(hcache_t, 1);
+ const char *path;
+ hcache_t *h;
- h->folder = m_strdup(folder);
- h->crc = generate_crc32();
-
- if (m_strisempty(path)) {
- p_delete(&h->folder);
- p_delete(&h);
+ if (m_strisempty(mod_core.cachedir)) {
return NULL;
}
- path = mutt_hcache_per_folder(path, folder);
+ h = p_new(hcache_t, 1);
+ h->folder = m_strdup(folder);
+ h->crc = generate_crc32();
+
+ path = mutt_hcache_per_folder(mod_core.cachedir, folder);
{
#if defined(HAVE_QDBM)