6.0.0-beta1
7/7/25

[#14771] Possibly malformed e-mail not handled properly
Summary Possibly malformed e-mail not handled properly
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester arjen+horde (at) de-korte (dot) org
Created 01/22/2018 (2723 days ago)
Due
Updated 02/11/2018 (2703 days ago)
Assigned
Resolved 02/11/2018 (2703 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/11/2018 02:17:57 AM Michael Rubinsky Comment #9
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
The fatal error, which is what is causing the broken sync, is caused 
by the error fixed here:

https://github.com/horde/Imap_Client/commit/4666bf5d32372955a32f9efcc6c083812fb202d3

I've added some code that will treat the PARSE error the same as a CTE 
error with respect to a binary fetch in that it will try it again 
without the binary extension before failing.
01/26/2018 04:11:11 PM arjen+horde (at) de-korte (dot) org Comment #8
New Attachment: Imap_Client_Socket.patch Download
Reply to this comment
Patch was missing.
01/26/2018 04:10:33 PM arjen+horde (at) de-korte (dot) org Comment #7 Reply to this comment
And problem found. Dovecot 2.3+ has changed something:

  * IMAP: When BINARY FETCH finds a broken mails, send [PARSE] error
    instead of [UNKNOWNCTE]

And lo-and-behold, if I apply the attached patch, all seems to be well 
again. I doubt this is the correct way to deal with the above change 
however, as this will bluntly treat a PARSE error as UNKNOWNCTE and I 
really suck at PHP programming.

You have been warned...

01/26/2018 11:25:08 AM arjen+horde (at) de-korte (dot) org Comment #6
New Attachment: imap.log Download
Reply to this comment
debug_raw log when trying to open message (fails)
01/25/2018 07:43:15 PM arjen+horde (at) de-korte (dot) org Comment #5 Reply to this comment
FWIW, the messages can be opened and read through MozillaThunderbird 
just fine. Curiously enough, Horde only has problems in messages from 
one mailinglist.
01/23/2018 01:14:59 PM arjen+horde (at) de-korte (dot) org Comment #4 Reply to this comment
I notice that a small percentage of messages that previously (less 
than a month ago) could be read just fine, now no longer do and lead 
to the dreaded communication failure with the server.
01/22/2018 11:39:35 AM arjen+horde (at) de-korte (dot) org Comment #3 Reply to this comment
In case relevant, IMAP server is Dovecot-2.3.

01/22/2018 11:37:39 AM arjen+horde (at) de-korte (dot) org Comment #2
New Attachment: horde.log Download
Reply to this comment
Logfile excerpt while attempting to sync message
01/22/2018 11:36:34 AM arjen+horde (at) de-korte (dot) org Comment #1
Milestone ⇒
State ⇒ Unconfirmed
New Attachment: 1516614291.M217355P23993.mail,S=7835,W=7965_2,S Download
Patch ⇒ No
Queue ⇒ Horde Framework Packages
Summary ⇒ Possibly malformed e-mail not handled properly
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
The attached message stops cannot be read through the webmail 
interface and stops ActiveSync from synchronizing the folder it is in. 
After removing it from the folder, all is well again.

Saved Queries