Changeset 5240:51595292e112 for imap

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

Fix the test for flushing queued STATUS requests in imap_buffy_check.
This should fix the bug that caused every other IMAP connection to
fail to get the new message counts. Thanks to exg for his generous
help debugging this one.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/imap.c

    r5215 r5240  
    14621462    if (!imap_mxcmp (name, idata->mailbox)) 
    14631463      continue; 
    1464        
    1465     if (!lastdata) 
    1466       lastdata = idata; 
    1467  
    1468     if (idata != lastdata) 
     1464 
     1465    if (!mutt_bit_isset (idata->capabilities, IMAP4REV1) && 
     1466        !mutt_bit_isset (idata->capabilities, STATUS)) 
     1467    { 
     1468      dprint (2, (debugfile, "Server doesn't support STATUS\n")); 
     1469      continue; 
     1470    } 
     1471 
     1472    if (lastdata && idata != lastdata) 
    14691473    { 
    14701474      /* Send commands to previous server. Sorting the buffy list 
     
    14761480    } 
    14771481 
    1478     if (!mutt_bit_isset (idata->capabilities, IMAP4REV1) && 
    1479         !mutt_bit_isset (idata->capabilities, STATUS)) 
    1480     { 
    1481       dprint (2, (debugfile, "Server doesn't support STATUS\n")); 
    1482       continue; 
    1483     } 
    1484      
     1482    if (!lastdata) 
     1483      lastdata = idata; 
     1484 
    14851485    imap_munge_mbox_name (munged, sizeof (munged), name); 
    14861486    snprintf (command, sizeof (command),