diff options
author | Rocco Rutte <pdmef@gmx.net> | 2009-04-26 21:09:53 +0200 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2009-04-26 21:09:53 +0200 |
commit | 40400dbacdbcbd15424233529904ca024a7cb9a7 (patch) | |
tree | 938999415781ec279b907510c9e20f38fdf71c3f /pop.c | |
parent | e0c461eb594063fb99a1649807d3c6173db93735 (diff) |
POP: Support hcache updating, too.
This also allows us to use hcache to manage
"flagged" and "replied" message flags.
Diffstat (limited to 'pop.c')
-rw-r--r-- | pop.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -418,6 +418,11 @@ int pop_open_mailbox (CONTEXT *ctx) memset (ctx->rights, 0, sizeof (ctx->rights)); mutt_bit_set (ctx->rights, M_ACL_SEEN); mutt_bit_set (ctx->rights, M_ACL_DELETE); +#if USE_HCACHE + /* flags are managed using header cache, so it only makes sense to + * enable them in that case */ + mutt_bit_set (ctx->rights, M_ACL_WRITE); +#endif FOREVER { @@ -666,6 +671,14 @@ int pop_sync_mailbox (CONTEXT *ctx, int *index_hint) #endif } } + +#if USE_HCACHE + if (ctx->hdrs[i]->changed) + { + mutt_hcache_store (hc, ctx->hdrs[i]->data, ctx->hdrs[i], 0, strlen); + } +#endif + } #if USE_HCACHE |