Show
Ignore:
Timestamp:
2007-04-02 10:48:47 (22 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Add create flag to imap_mboxcache_get

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/command.c

    r5043 r5044  
    820820  IMAP_MBOX mx; 
    821821  int count; 
    822   IMAP_STATUS *status, sb; 
    823   int olduv, oldun; 
     822  IMAP_STATUS *status; 
     823  unsigned int olduv, oldun; 
    824824 
    825825  mailbox = imap_next_word (s); 
     
    828828  imap_unmunge_mbox_name (mailbox); 
    829829 
    830   if (!(status = imap_mboxcache_get (idata, mailbox))) 
    831   { 
    832     /* ugly interface - why should I look up what I just added? */ 
    833     memset (&sb, 0, sizeof (IMAP_STATUS)); 
    834     sb.name = mailbox; 
    835     idata->mboxcache = mutt_add_list_n (idata->mboxcache, &sb, sizeof (IMAP_STATUS)); 
    836     status = imap_mboxcache_get (idata, mailbox); 
    837     status->name = safe_strdup (mailbox); 
    838   } 
     830  status = imap_mboxcache_get (idata, mailbox, 1); 
    839831  olduv = status->uidvalidity; 
    840832  oldun = status->uidnext;