Changeset 2150:40142ff984ca for buffy.c

Show
Ignore:
Timestamp:
2000-10-10 12:22:44 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Vsevolod Volkov's POP mailbox patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r2069 r2150  
    252252  if (!Context || Context->magic != M_IMAP) 
    253253#endif 
     254#ifdef USE_POP 
     255  if (!Context || Context->magic != M_POP) 
     256#endif 
    254257  /* check device ID and serial number instead of comparing paths */ 
    255258  if (!Context || !Context->path || stat (Context->path, &contex_sb) != 0) 
     
    266269    if ((tmp->magic == M_IMAP) || mx_is_imap (tmp->path)) 
    267270      tmp->magic = M_IMAP; 
     271    else 
     272#endif 
     273#ifdef USE_POP 
     274    if ((tmp->magic == M_POP) || mx_is_pop (tmp->path)) 
     275      tmp->magic = M_POP; 
    268276    else 
    269277#endif 
     
    283291    /* check to see if the folder is the currently selected folder 
    284292     * before polling */ 
    285     if (!Context || !Context->path ||  
    286 #ifdef USE_IMAP 
    287         (tmp->magic == M_IMAP && mutt_strcmp (tmp->path, Context->path)) || 
    288         (tmp->magic != M_IMAP && ( 
    289 #endif 
    290         sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino) 
    291 #ifdef USE_IMAP 
    292           )) 
    293 #endif 
     293    if (!Context || !Context->path || 
     294#if defined USE_IMAP || defined USE_POP 
     295        (( 
     296#ifdef USE_IMAP 
     297        tmp->magic == M_IMAP 
     298#endif 
     299#ifdef USE_POP 
     300#ifdef USE_IMAP 
     301        || 
     302#endif 
     303        tmp->magic == M_POP 
     304#endif 
     305        ) ? mutt_strcmp (tmp->path, Context->path) : 
     306#endif 
     307        (sb.st_dev != contex_sb.st_dev || sb.st_ino != contex_sb.st_ino))) 
    294308    { 
    295309      switch (tmp->magic) 
     
    351365        break; 
    352366#endif 
     367 
     368#ifdef USE_POP 
     369      case M_POP: 
     370        break; 
     371#endif 
    353372      } 
    354373    }