Changeset 4128 in subversion
- Timestamp:
- Oct 25, 2010 3:45:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap_generic.php
r4126 r4128 120 120 121 121 const COMMAND_NORESPONSE = 1; 122 const COMMAND_CAPABILITY = 2; 122 123 123 124 /** … … 477 478 // RFC 4959 (SASL-IR): save one round trip 478 479 if ($this->getCapability('SASL-IR')) { 479 $result = $this->execute("AUTHENTICATE PLAIN", array($reply), self::COMMAND_NORESPONSE); 480 $result = $this->execute("AUTHENTICATE PLAIN", array($reply), 481 self::COMMAND_NORESPONSE | self::COMMAND_CAPABILITY); 480 482 } 481 483 else { … … 495 497 496 498 if ($result == self::ERROR_OK) { 499 // optional CAPABILITY response 500 if ($line && preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches)) { 501 $this->parseCapability($matches[1]); 502 } 497 503 return $this->fp; 498 504 } … … 515 521 { 516 522 list($code, $response) = $this->execute('LOGIN', array( 517 $this->escape($user), $this->escape($password)) );523 $this->escape($user), $this->escape($password)), self::COMMAND_CAPABILITY); 518 524 519 525 // re-set capabilities list if untagged CAPABILITY response provided … … 2803 2809 } 2804 2810 2811 // optional CAPABILITY response 2812 if (($options & self::COMMAND_CAPABILITY) && $code == self::ERROR_OK 2813 && preg_match('/\[CAPABILITY ([^]]+)\]/i', $line, $matches) 2814 ) { 2815 $this->parseCapability($matches[1]); 2816 } 2817 2805 2818 return $noresp ? $code : array($code, $response); 2806 2819 }
Note: See TracChangeset
for help on using the changeset viewer.
