Changeset 4465:11d366f0c81a for buffy.c

Show
Ignore:
Timestamp:
2005-12-11 14:51:29 (3 years ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

IMAP command batching code, used to pipeline mailbox poll requests.
Up to 10 poll commands will be sent at a time (tunable in imap_private.h).
This is a huge win on my currently awful wireless link. It takes a knife
to a lot of fundamental IMAP code (mostly for the better), so it may
have destabilised things. Time for some brave (or lazy non-Changelog-reading)
testers to report... next up, IDLE support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r4439 r4465  
    287287 
    288288#ifdef USE_IMAP 
     289  BuffyCount += imap_buffy_check (force); 
     290 
    289291  if (!Context || Context->magic != M_IMAP) 
    290292#endif 
     
    301303  for (tmp = Incoming; tmp; tmp = tmp->next) 
    302304  { 
     305#ifndef USE_IMAP 
    303306    tmp->new = 0; 
    304  
    305 #ifdef USE_IMAP 
    306     if (mx_is_imap (tmp->path)) 
    307       tmp->magic = M_IMAP; 
    308     else 
    309 #endif 
     307#endif 
     308 
    310309#ifdef USE_POP 
    311310    if (mx_is_pop (tmp->path)) 
     
    399398          BuffyCount++; 
    400399        break; 
    401          
    402 #ifdef USE_IMAP 
    403       case M_IMAP: 
    404         if ((tmp->new = imap_mailbox_check (tmp->path, 1)) > 0) 
    405           BuffyCount++; 
    406         else 
    407           tmp->new = 0; 
    408  
    409         break; 
    410 #endif 
    411  
    412 #ifdef USE_POP 
    413       case M_POP: 
    414         break; 
    415 #endif 
    416400      } 
    417401    }