Incoming emails, majority reporting Malformed header detected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FredFredrickson
    Junior Member
    • Nov 2016
    • 13

    Incoming emails, majority reporting Malformed header detected

    I am still receiving some email, but I'm getting "(Get Message): [0] Malformed header detected [] []" for most emails coming to my account. Including normal looking email from gmail.com

    I'm on Version 4.2.7

    Please help!

    Edit: I'm going to try upgrading ZEND-MAIL manually. Will report back.

    Edit 2: Newest Zend still has error. I have manually edited ZEND-MAIL's Headers.php and removed the offending exceptions (surely a bad idea, but I'm out of ideas).

    I commented out lines 82 and 88:

    //throw new Exception\RuntimeException('Malformed header detected');

    Appears email is now arriving properly
    Last edited by FredFredrickson; 11-23-2016, 07:15 PM.
  • yuri
    Member
    • Mar 2014
    • 8442

    #2
    Hi,

    Don't upgrade zend mail. New zend mail version has much more bugs. The next version 4.3.0 (beta now) has alternative mail parser that seems works better.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • FredFredrickson
      Junior Member
      • Nov 2016
      • 13

      #3
      Originally posted by yurikuzn
      Hi,

      Don't upgrade zend mail. New zend mail version has much more bugs. The next version 4.3.0 (beta now) has alternative mail parser that seems works better.
      You mentioned that you upgraded to new mail parser, but i'm on 4.3.0 now, and my log shows this today:

      [2016-12-14 20:40:03] Espo.ERROR: EmailAccount 5835e8ef0d2d2be2a (Import Message w/ zend-mail): [0] Malformed header detected [] []

      Comment

      • yuri
        Member
        • Mar 2014
        • 8442

        #4
        You need to install mailparse extension.

        "php -m" command in CLI will show if it's installed and loaded.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...