Deprecated
| 1444 | |
| 1445 | // Deprecated |
| 1446 | char IMAPSession::fetchDelimiterIfNeeded(char defaultDelimiter, ErrorCode * pError) |
| 1447 | { |
| 1448 | int r; |
| 1449 | clist * imap_folders; |
| 1450 | IMAPFolder * folder; |
| 1451 | Array * folders; |
| 1452 | |
| 1453 | if (defaultDelimiter != 0) |
| 1454 | return defaultDelimiter; |
| 1455 | |
| 1456 | r = mailimap_list(mImap, "", "", &imap_folders); |
| 1457 | folders = resultsWithError(r, imap_folders, pError); |
| 1458 | if (* pError == ErrorConnection || * pError == ErrorParse) |
| 1459 | mShouldDisconnect = true; |
| 1460 | if (* pError != ErrorNone) |
| 1461 | return 0; |
| 1462 | |
| 1463 | if (folders->count() > 0) { |
| 1464 | folder = (IMAPFolder *) folders->objectAtIndex(0); |
| 1465 | } |
| 1466 | else { |
| 1467 | folder = NULL; |
| 1468 | } |
| 1469 | if (folder == NULL) |
| 1470 | return 0; |
| 1471 | |
| 1472 | * pError = ErrorNone; |
| 1473 | return folder->delimiter(); |
| 1474 | } |
| 1475 | |
| 1476 | Array * /* IMAPFolder */ IMAPSession::fetchSubscribedFolders(ErrorCode * pError) |
| 1477 | { |
nothing calls this directly
no test coverage detected