Ticket #2942: hc-update.diff

File hc-update.diff, 0.8 kB (added by pdmef, 6 months ago)
  • imap/imap.c

    diff --git a/imap/imap.c b/imap/imap.c
    a b  
    11551155  { 
    11561156    h = ctx->hdrs[n]; 
    11571157 
     1158#if USE_HCACHE 
     1159      imap_hcache_put (idata, h); 
     1160#endif 
     1161 
    11581162    if (h->deleted) 
    11591163    { 
    11601164      imap_cache_del (idata, h); 
  • mh.c

    diff --git a/mh.c b/mh.c
    a b  
    16481648    if (!ctx->quiet) 
    16491649      mutt_progress_update (&progress, i, -1); 
    16501650 
     1651#if USE_HCACHE 
     1652    if (ctx->magic == M_MAILDIR) 
     1653      mutt_hcache_store (hc, ctx->hdrs[i]->path + 3, ctx->hdrs[i], 
     1654                         0, &maildir_hcache_keylen); 
     1655    else if (ctx->magic == M_MH) 
     1656      mutt_hcache_store (hc, ctx->hdrs[i]->path, ctx->hdrs[i], 0, strlen); 
     1657#endif 
     1658 
    16511659    if (ctx->hdrs[i]->deleted 
    16521660        && (ctx->magic != M_MAILDIR || !option (OPTMAILDIRTRASH))) 
    16531661    {