#015837: imap.google.com (google gmail) changed IMAP response causes fatal error?

Description:

Attempting to connect to imap.gmail.com using the Mail component triggers a PHP fatal error in Mail/src/transports/imap/imap_transport.php (tried versions 1.6 and 1.6.3 of that file).

This component was working fine with the same credentials and server settings recently. Error reported in the CiviCRM project, where the speculation is that this is based on a Google Mail protocol behavior change: http://forum.civicrm.org/index.php/topic,10721.0.htmlurl

Error looks like the following:

connecting to imap.gmail.com, authenticating as civimail@domain.org and selecting INBOX
Fatal error: Uncaught exception 'ezcMailTransportException' with message 'An error occured while sending or receiving mail. The IMAP server did not accept the username and/or password: * CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE.' in /...[deleted].../public_html/administrator/components/com_civicrm/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php:515 Stack trace: #0 /...[deleted].../public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore/Imap.php(61): ezcMailImapTransport->authenticate('civimailuser@...', 'password') #1 /...[deleted].../public_html/administrator/components/com_civicrm/civicrm/CRM/Mailing/MailStore.php(61): CRM_Mailing_MailStore_Imap->__construct('imap.gmail.com', 'civimailuser@...', 'password', true, NULL) #2 /...[deleted].../public_html/administrator/components/com_civicrm/civicrm/bin/CiviMailProcessor.php(91): CRM_Mailing_MailStore::getStore(NULL) #3 /...[deleted].../public_html/administrator/compone in /home/carolina/public_html/administrator/components/com_civicrm/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php on line 515


Environment:

Operating System: CentOS
PHP Version: 5.2.6
Database and version: n/a
Browser (and version): n/a


- Attachments

No attachments for this issue.


- Comments

Good news is that our tests already cover this, and they indeed started to fail. Bad thing is that we still need to fix it :-)

#263956 by Derick Rethans on November 20th, 2009 [Permanent Link]

Fixed in SVN rev. #11127, this will be part of next Monday's beta release.

#263957 by Derick Rethans on November 20th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Mail
Affects Unknown
Fix Version 2009.2beta1 - eZ components 2009.2beta1
Reporter Jesse Mortenson
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created November 13th, 2009
Updated November 20th, 2009
Resolved November 20th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels