1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed PHP error with bounce processor on empty IMAP mailbox

Discussion in 'Resolved Bug Reports' started by Mike, Sep 14, 2014.

  1. Mike

    Mike XenForo Developer Staff Member

    Some IMAP servers may cause an error when processing bounced emails and the mailbox is empty. Note that when there is mail in the mailbox, it is still collected and processed correctly. This fix just prevents your error log from being filled spuriously.

    In library/Zend/Mail/Protocol/Imap.php, add the code in red:
               $response = $this->requestAndResponse('SEARCH', $params); 
               if (!$response) { 
                   return $response; 
               if ($response === true) { 
                   // returned no entries 
                   return array(); 
    GliX, imthebest and soloarquitectura like this.

Share This Page