summaryrefslogtreecommitdiffstats
path: root/hcache.h
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2013-01-17 02:43:41 +0000
committerMichael Elkins <me@sigpipe.org>2013-01-17 02:43:41 +0000
commit9736319d31cd9ee8d9fcb85199d80a5620d5161d (patch)
treeb20768c6a4b7d876c15343ebba6d7ed34f9b6aa3 /hcache.h
parent5e0b295a66b7d5c414847fbd07c345da19cc2fe2 (diff)
use a separate flag for mutt_hcache_store() to signal that the gettimeofday() value should be substituted, so that a 0 uidvalidity can be used by the imap driver.
closes #3501
Diffstat (limited to 'hcache.h')
-rw-r--r--hcache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/hcache.h b/hcache.h
index aab263bc..62eaa18b 100644
--- a/hcache.h
+++ b/hcache.h
@@ -33,9 +33,14 @@ HEADER *mutt_hcache_restore(const unsigned char *d, HEADER **oh);
void *mutt_hcache_fetch(header_cache_t *h, const char *filename, size_t (*keylen)(const char *fn));
void *mutt_hcache_fetch_raw (header_cache_t *h, const char *filename,
size_t (*keylen)(const char *fn));
+
+typedef enum {
+ M_GENERATE_UIDVALIDITY = 1 /* use gettimeofday() as value */
+} mutt_hcache_store_flags_t;
+
/* uidvalidity is an IMAP-specific unsigned 32 bit number */
int mutt_hcache_store(header_cache_t *h, const char *filename, HEADER *header,
- unsigned int uidvalidity, size_t (*keylen)(const char *fn));
+ unsigned int uidvalidity, size_t (*keylen)(const char *fn), mutt_hcache_store_flags_t flags_t);
int mutt_hcache_store_raw (header_cache_t *h, const char* filename, void* data,
size_t dlen, size_t(*keylen) (const char* fn));
int mutt_hcache_delete(header_cache_t *h, const char *filename, size_t (*keylen)(const char *fn));