Changeset 5041:4f598543d7a5 for imap

Show
Ignore:
Timestamp:
2007-04-01 23:12:45 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Adjust context->size on IMAP load and expunge (closes #2749)

Location:
imap
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • imap/imap.c

    r5033 r5041  
    259259 
    260260      h->active = 0; 
     261      idata->ctx->size -= h->content->length; 
    261262 
    262263      imap_cache_del (idata, h); 
  • imap/message.c

    r5034 r5041  
    191191 
    192192          ctx->msgcount++; 
     193          ctx->size += ctx->hdrs[idx]->content->length; 
    193194        } 
    194195        else 
     
    293294      /* content built as a side-effect of mutt_read_rfc822_header */ 
    294295      ctx->hdrs[idx]->content->length = h.content_length; 
     296      ctx->size += h.content_length; 
    295297 
    296298#if USE_HCACHE