Changeset 5240:51595292e112
- Timestamp:
- 2007-10-31 14:04:48 (15 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5215
|
r5240
|
|
| 1462 | 1462 | if (!imap_mxcmp (name, idata->mailbox)) |
| 1463 | 1463 | 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) |
| 1469 | 1473 | { |
| 1470 | 1474 | /* Send commands to previous server. Sorting the buffy list |
| … |
… |
|
| 1476 | 1480 | } |
| 1477 | 1481 | |
| 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 | |
| 1485 | 1485 | imap_munge_mbox_name (munged, sizeof (munged), name); |
| 1486 | 1486 | snprintf (command, sizeof (command), |