* Key: Horde_Imap_Client::FETCH_HEADERTEXT
* Desc: Returns the header text. Header text is defined only for the
* base RFC 2822 message or message/rfc822 parts. Attempting to
- * retireve the body text from other parts will result in a
+ * retrieve the body text from other parts will result in a
* thrown exception.
* MORE THAN ONE of these entries can be defined. Each entry will
* be a separate array contained in the value field.
* Key: Horde_Imap_Client::FETCH_BODYTEXT
* Desc: Returns the body text. Body text is defined only for the
* base RFC 2822 message or message/rfc822 parts. Attempting to
- * retireve the body text from other parts will result in a
+ * retrieve the body text from other parts will result in a
* thrown exception.
* MORE THAN ONE of these entries can be defined. Each entry will
* be a separate array contained in the value field.
* RFC 2195 - AUTH=CRAM-MD5
* RFC 2221 - LOGIN-REFERRALS
* RFC 2342 - NAMESPACE
- * RFC 2595/4616 - AUTH=PLAIN
+ * RFC 2595/4616 - TLS & AUTH=PLAIN
* RFC 2831 - DIGEST-MD5 authentication mechanism.
* RFC 2971 - ID
* RFC 3501 - IMAP4rev1 specification
}
/* Use MD5 authentication first, if available. But no need to use
- * use special authentication if we are already using an
- * encrypted connection. */
+ * special authentication if we are already using an encrypted
+ * connection. */
if ($this->_isSecure) {
$imap_auth_mech = array_reverse($imap_auth_mech);
}
switch ($method) {
case 'CRAM-MD5':
// RFC 2195
- if (class_exists('Auth_SASL')) {
+ if (!class_exists('Auth_SASL')) {
throw new Horde_Imap_Client_Exception('The Auth_SASL package is required for CRAM-MD5 authentication');
}
$auth_sasl = Auth_SASL::factory('crammd5');
break;
case 'DIGEST-MD5':
- if (class_exists('Auth_SASL')) {
+ if (!class_exists('Auth_SASL')) {
throw new Horde_Imap_Client_Exception('The Auth_SASL package is required for DIGEST-MD5 authentication');
}
$auth_sasl = Auth_SASL::factory('digestmd5');