Changeset 5378:ac00273b3a88 for imap

Show
Ignore:
Timestamp:
2008-05-17 12:02:24 (6 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Use context to get IMAP new message count in mailbox browser if possible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/browse.c

    r5064 r5378  
    229229  } 
    230230 
    231   if ((status = imap_mboxcache_get (idata, mx.mbox, 0))) 
     231  if (!imap_mxcmp(mx.mbox, idata->mailbox)) 
     232  { 
     233    state->new = idata->ctx->new; 
     234    state->messages = idata->ctx->msgcount; 
     235  } 
     236  else if ((status = imap_mboxcache_get (idata, mx.mbox, 0))) 
    232237  { 
    233238    state->new = status->unseen;