CRM-4095 imap mailprocessor only works at the first run (before the civi-folders are created)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: CiviMail
    • Labels:
      None

      Description

      Hi,

      im testing the great new php mailprocessor.

      the problem:
      The CiviMailProcessor only works for me at the first run - when the civicrm-folders doesn't exists.
      If the folders exists, the script stops after printing the mailboxes "Inbox mailboxes found: [...]"

      What i've tested:
      I've commented out the two "createMailbox()" lines in the Imap.php to test.
      "// if (!in_array($this->_ignored, $boxes)) $this->_transport->createMailbox($this->_ignored); "
      "// if (!in_array($this->_processed, $boxes)) $this->_transport->createMailbox($this->_processed);"

      After doing that, the script works great (if the civicrm-folders exists ) !

      I'm a php-noob so i don't know how to detailed debug this problem.

        Attachments

          Activity

          [CRM-4095] imap mailprocessor only works at the first run (before the civi-folders are created)
          Till Schmidt added a comment -

          It's a case problem.
          The listMailboxes() returns eg "INBOX.CiviMail.processed" for me oO

          I don't know whats better. To configure my $inbox to "INBOX" or to fix the code to lowercase the values??

          Piotr Szotkowski added a comment -

          I think I fixed this in r19791 by uppercasing INBOX - can you please try overwriting your CRM/Mailing/MailStore/Imap.php with the one from http://svn.civicrm.org/civicrm/branches/v2.2/CRM/Mailing/MailStore/Imap.php or applying http://fisheye.civicrm.org/changelog/CiviCRM/?cs=19791 to your install and verify?

          Till Schmidt added a comment -

          Yes, works fine - thank you so much!

            People

            • Assignee:
              Piotr Szotkowski
              Reporter:
              Till Schmidt

              Dates

              • Created:
                Updated:
                Resolved: