XF 1.4 Zend_Exception: Not a valid Mime Message: End Missing - library/Zend/Mime/Decode.php:72


Active member
Since yesterday I keep getting these messages...


Server Error Log
Error Info
Zend_Exception: Not a valid Mime Message: End Missing - library/Zend/Mime/Decode.php:72
Generated By: Unknown Account, 7 minutes ago
Stack Trace
#0 /var/www/vhosts/abcde.co.uk/httpdocs/library/Zend/Mime/Decode.php(92): Zend_Mime_Decode::splitMime('This is a multi...', '---------------...')
#1 /var/www/vhosts/abcde.co.uk/httpdocs/library/Zend/Mail/Part.php(222): Zend_Mime_Decode::splitMessageStruct('This is a multi...', '---------------...')
#2 /var/www/vhosts/abcde.co.uk/httpdocs/library/Zend/Mail/Part.php(292): Zend_Mail_Part->_cacheContent()
#3 /var/www/vhosts/abcde.co.uk/httpdocs/library/Zend/Mail/Part.php(517): Zend_Mail_Part->countParts()
#4 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/BounceParser.php(175): Zend_Mail_Part->rewind()
#5 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/BounceParser.php(163): XenForo_BounceParser->_process()
#6 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/Model/EmailBounce.php(13): XenForo_BounceParser->__construct(Object(Zend_Mail_Message), 'bounce@28daysla...', '64b29d7326e56e0...')
#7 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/Deferred/EmailBounce.php(52): XenForo_Model_EmailBounce->processBounceEmail('Return-Path: <g...')
#8 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/Model/Deferred.php(294): XenForo_Deferred_EmailBounce->execute(Array, Array, 7.9999899864197, '')
#9 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/Model/Deferred.php(428): XenForo_Model_Deferred->runDeferred(Array, 7.9999899864197, '', false)
#10 /var/www/vhosts/abcde.co.uk/httpdocs/library/XenForo/Model/Deferred.php(373): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#11 /var/www/vhosts/abcde.co.uk/httpdocs/deferred.php(23): XenForo_Model_Deferred->run(false)
#12 {main}
Request State
array(3) {
["url"] => string(41) "http://www.abcde.co.uk/deferred.php"
["_GET"] => array(0) {
["_POST"] => array(3) {
["_xfRequestUri"] => string(8) "/search/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"

I think it's errors from the bounce system but really not sure.

Any help would be appreciated.




XenForo developer
Staff member
These are from the bounce processor. This seems to be implying that there's a syntactically invalid email in the account.

The simplest thing might be to access the email account yourself to delete the email. That said, the email should already have been removed by then (we remove the message before processing it) so it shouldn't keep repeating. Is it repeating every hour or so?


XenForo developer
Staff member
Oh oops sorry, it does run twice an hour. But was it only twice then? If so, I'd just ignore it. If it keeps happening every time the system checks, then we'd probably need to take more steps.


XenForo developer
Staff member
If it's not happening every time, then I'd probably ignore it, though that is more than I would expect.

The problem/challenge is that we need to get access to the message and to prevent situations where a bad email causes permanent looping, we delete the message from the server before processing it. (If we didn't do that, this error would have broken the handler continuously.) If it comes back, we may get need to get some logging code in so we can see the full email.