Show
Ignore:
Timestamp:
2007-04-02 19:19:55 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Add hook for proper IMAP unseen count in mailbox browser

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • browser.c

    r5010 r5052  
    427427  char buffer[LONG_STRING]; 
    428428  BUFFY *tmp = Incoming; 
     429#ifdef USE_IMAP 
     430  struct mailbox_state mbox; 
     431#endif 
    429432 
    430433  if (!Incoming) 
     
    439442    if (mx_is_imap (tmp->path)) 
    440443    { 
    441       add_folder (menu, state, tmp->path, NULL, tmp->new); 
     444      imap_mailbox_state (tmp->path, &mbox); 
     445      add_folder (menu, state, tmp->path, NULL, mbox.new); 
    442446      continue; 
    443447    }