CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • CiviMail 2.2a3 issue plus fix - unable to create IMAP folder 'CiviMailIgnored'
Pages: [1]

Author Topic: CiviMail 2.2a3 issue plus fix - unable to create IMAP folder 'CiviMailIgnored'  (Read 1611 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
CiviMail 2.2a3 issue plus fix - unable to create IMAP folder 'CiviMailIgnored'
January 26, 2009, 07:34:23 pm
Issue

I get the following error when I run CiviMailProcessor.php ...

Quote
connecting to xxx.org, authenticating as xxx@xxx.org and selecting Inbox mailboxes found: INBOX.Trash, INBOX.Sent, INBOX.Drafts, INBOX
( ! ) ezcMailTransportException: An error occured while sending or receiving mail. The IMAP server could not create mailbox 'CiviMailIgnored': A0004 NO Invalid mailbox name.. in /var/www/cbfj15c22/administrator/components/com_civicrm/civicrm/packages/ezc/Mail/src/transports/imap/imap_transport.php on line 746
Call Stack
#   Time   Memory   Function   Location
1   0.0015   168704   {main}( )   ../CiviMailProcessor.php:0
2   0.1764   8439856   CiviMailProcessor::process( )   ../CiviMailProcessor.php:158
3   0.1818   8620792   CRM_Mailing_MailStore::getStore( )   ../CiviMailProcessor.php:60
4   0.1922   9005080   CRM_Mailing_MailStore_Imap->__construct( )   ../MailStore.php:61
5   1.7687   9930008   ezcMailImapTransport->createMailbox( )   ../Imap.php:70


Potential Fix

When I change lines 64-65 of CRM/Mailing/MailStore/Imap.php to ...

Code: [Select]
        $this->_ignored   = $folder.'.CiviMailIgnored';
        $this->_processed = $folder.'.CiviMailProcessed';

... so the code creates folders like 'INBOX.CiviMailIgnored' rather than 'CiviMailIgnored', then the code works. The issue I face then is that the new folders don't appear in the 'courierimapsubscribed' file, so I can't see them from my email client.

Ken

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: CiviMail 2.2a3 issue plus fix - unable to create IMAP folder 'CiviMailIgnored'
January 26, 2009, 07:52:43 pm
BTW,

The code I was running was 2.2a3 plus the patch for 19509 to CiviMailProcessor.php, plus the patches for 19510 to CiviMailProcessor.php and MailStore.php.

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • CiviMail 2.2a3 issue plus fix - unable to create IMAP folder 'CiviMailIgnored'

This forum was archived on 2017-11-26.