Changeset 2150:40142ff984ca for buffy.c
Legend:
- Unmodified
- Added
- Removed
-
buffy.c
r2069 r2150 252 252 if (!Context || Context->magic != M_IMAP) 253 253 #endif 254 #ifdef USE_POP 255 if (!Context || Context->magic != M_POP) 256 #endif 254 257 /* check device ID and serial number instead of comparing paths */ 255 258 if (!Context || !Context->path || stat (Context->path, &contex_sb) != 0) … … 266 269 if ((tmp->magic == M_IMAP) || mx_is_imap (tmp->path)) 267 270 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; 268 276 else 269 277 #endif … … 283 291 /* check to see if the folder is the currently selected folder 284 292 * 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))) 294 308 { 295 309 switch (tmp->magic) … … 351 365 break; 352 366 #endif 367 368 #ifdef USE_POP 369 case M_POP: 370 break; 371 #endif 353 372 } 354 373 }
