summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-21 08:19:26 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-21 08:19:26 +0000
commited41d4651abe25d9a48a80fe06f179c079ea79e9 (patch)
tree7468531741aec2b6326604830568cd1e54f02cab
parenta5b0f26e0db1cf9685bb1fd9ffd645785c9fed54 (diff)
-commented out optional capability response reading on connect
git-svn-id: https://svn.roundcube.net/trunk@1414 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/lib/imap.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index fcd3a2c11..eca4d63d0 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -480,9 +480,10 @@ function iil_Connect($host, $user, $password) {
$line = iil_ReadLine($conn->fp, 1024);
// RFC3501 [7.1] optional CAPABILITY response
- if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
- $conn->capability = explode(' ', $matches[1]);
- } else {
+ // commented out, because it's not working always as should
+// if (preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) {
+// $conn->capability = explode(' ', $matches[1]);
+// } else {
fputs($conn->fp, "cp01 CAPABILITY\r\n");
do {
$line = trim(chop(iil_ReadLine($conn->fp, 100)));
@@ -497,7 +498,7 @@ function iil_Connect($host, $user, $password) {
}
}
} while ($a[0] != 'cp01');
- }
+// }
if (strcasecmp($auth_method, "check") == 0) {
//check for supported auth methods