6.0.0-RC7
6/18/26

[#13728] HTML emails not showing correctly
Summary HTML emails not showing correctly
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester bohdan.s (at) gmail (dot) com
Created 11/30/14 (4218 days ago)
Due
Updated 12/8/14 (4210 days ago)
Assigned 12/5/14 (4213 days ago)
Resolved 12/5/14 (4213 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
569 bohdan (dot) s (at) gmail (dot) com Comment #34 Reply to this comment
I will wait for the next ActiveSync release, maybe its how I applied 
the patch.
209 Michael Rubinsky Comment #33 Reply to this comment
Issue is worse after change, almost all HTML emails do not show iOS.
Don't know what to tell you. Works here after the change, breaks if 
it's reverted.
519 Michael Rubinsky Comment #32 Reply to this comment
No. It will actually be 2.21.0 now due to some changes I needed to 
make for another bug. I'm waiting to be able to test those other 
changes before releasing.
29 bohdan (dot) s (at) gmail (dot) com Comment #31 Reply to this comment
Manually applied commit: 
http://github.com/horde/horde/commit/5442476c0570d3ad18ab52ba6bfb54a91e6a4414
Issue is worse after change, almost all HTML emails do not show iOS.
159 bohdan (dot) s (at) gmail (dot) com Comment #30 Reply to this comment
Any updates on when 2.20.6 will be available?
142 bohdan (dot) s (at) gmail (dot) com Comment #29 Reply to this comment
Thank you, I will test when its available via pear.
372 Michael Rubinsky Comment #28
State ⇒ Resolved
Reply to this comment
Horde_ActiveSync 2.20.6
362 Git Commit Comment #27 Reply to this comment
Changes have been made in Git (master):

commit 5442476c0570d3ad18ab52ba6bfb54a91e6a4414
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Dec 5 09:46:56 2014 -0500

     Bug: 13728 Don't overwrite the MIME part's MIME headers.

  .../lib/Horde/ActiveSync/Imap/Adapter.php          |    9 +++++++--
  1 files changed, 7 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/5442476c0570d3ad18ab52ba6bfb54a91e6a4414
17 bohdan (dot) s (at) gmail (dot) com Comment #26 Reply to this comment
So,
Is there anyway to make the Horde_Mime more accepting again?
Or anyway to set ActiveSync to only forward the HTML parts and not the 
Plain text parts?
397 bohdan (dot) s (at) gmail (dot) com Comment #25
New Attachment: image2(1).png Download
Reply to this comment
Screenshot 2.5.2 (working)
277 bohdan (dot) s (at) gmail (dot) com Comment #24
New Attachment: image1(1)[1].PNG Download
Reply to this comment
Screenshot 2.5.4 (latest)
257 bohdan (dot) s (at) gmail (dot) com Comment #23
New Attachment: example3.eml Download
Reply to this comment
Last Example.
Attached in the source
147 Michael Rubinsky Comment #22 Reply to this comment
There were some recent changes to Horde_Mime which made it less 
accepting of these types of structure errors.
357 bohdan (dot) s (at) gmail (dot) com Comment #21 Reply to this comment
I just find it curious that both those example emails show correctly 
in Android ( as you explained its how the emails are read by the 
client ) and also in 2.5.2 the emails show correctly in iOS.
307 Michael Rubinsky Comment #20
State ⇒ Assigned
Reply to this comment
Yeah, I have that enabled, so there are no viewable parts.

This issue I may be able to work around in code, but not the previous example.

17 bohdan (dot) s (at) gmail (dot) com Comment #19
New Attachment: Screen Shot 2014-12-05 at 6.19.57 pm.png Download
Reply to this comment
I have no issue viewing it on my install,
I have 'inline' => true, set in imp/config/mime_drivers.php though.
367 Michael Rubinsky Comment #18 Reply to this comment
Screenshot of example2.eml
No attachment.
...and this email doesn't even display properly in IMP for me. It's 
declared as a multiplart/alternative part but contains only a single 
part (text/html).
507 bohdan (dot) s (at) gmail (dot) com Comment #17
New Attachment: image1(1).PNG Download
Reply to this comment
Uploading this time, sorry
327 Michael Rubinsky Comment #16 Reply to this comment
Screenshot of example2.eml
No attachment.
127 bohdan (dot) s (at) gmail (dot) com Comment #15 Reply to this comment
Screenshot of example2.eml
277 bohdan (dot) s (at) gmail (dot) com Comment #14
New Attachment: example2.eml Download
Reply to this comment
Another example email, this one seems to show the code,
Screenshot coming next
387 Michael Rubinsky Comment #13
State ⇒ Feedback
Reply to this comment
Can you provide another one of these emails? Preferably one that is 
not mis-structured?
217 bohdan (dot) s (at) gmail (dot) com Comment #12 Reply to this comment
Just to clear up,
I am only seeing this issue on 2.5.3+
I run up a test server with 2.5.2 and this email displays correctly on iOS.
Also this is happening on around 20% of my emails, most of those being 
from mailing lists.
26 Michael Rubinsky Comment #11 Reply to this comment
Attached are screen shots of what I am seeing,
Part1
Exactly. This isn't raw HTML, it's a display of both the text/plain 
part and the text/html part for the reasons I just posted.
526 Michael Rubinsky Comment #10
State ⇒ Not A Bug
Reply to this comment
The issue is the way the email is structured. It is structured as a 
multipart/mixed message, but contains only a single part on the first 
level. This part contains a multipart/alternative message that iOS 
sees as a single part since there is no other multipart/mixed part.

Manually restructuring the email to remove the multipart/mixed part 
causes the message to display normally. There is nothing Horde can do 
to work around this (short of munging the MIME data which we won't do) 
  since it's the client's job to determine which MIME part to display.
196 bohdan (dot) s (at) gmail (dot) com Comment #9
New Attachment: image2.PNG Download
Reply to this comment
Part2
426 bohdan (dot) s (at) gmail (dot) com Comment #8
New Attachment: image1.PNG Download
Reply to this comment
Attached are screen shots of what I am seeing,
Part1
196 Michael Rubinsky Comment #7 Reply to this comment
For me, on iOS, it shows both the plain and HTML parts for some 
reason, but no raw HTML code. Other HTML emails display normally.
266 bohdan (dot) s (at) gmail (dot) com Comment #6
New Attachment: example1.eml Download
Reply to this comment
No change,
Updated to Horde_Mime-2.6.0 + Horde_Stream-1.6.2 + Horde_ActiveSync-2.20.5

Attached copy of email ( correctly i hope this time )

This displays correctly on IMP and on Android devices, it seems to be 
only iOS.
Tested removing ActiveSync Device, removing the account and setting up 
from scratch, same result.
I might add I am running iOS 8.1 on all my iOS devices, so can not 
test on iOS 7. I did not have an issue after the iOS update, only 
after the Horde_Webmail 2.5.2 to 5.2.3 upgrade.
403 Michael Rubinsky Comment #5 Reply to this comment
Also, please see if this is fixed now that Bug: 13711 is fixed.
357 Michael Rubinsky Comment #4 Reply to this comment
This is not an email, it's just an HTML document.

I would need the actual email source to test.
333 bohdan (dot) s (at) gmail (dot) com Comment #3
New Attachment: Text(1) Download
Reply to this comment
Hi,
I have saved the email (which shows correctly in IMP) and attached it.
Possibly related to Bug: 13711.

Either way, I would need a copy of an email that exhibits this behavior.
372 Michael Rubinsky Comment #2
Assigned to Michael Rubinsky
State ⇒ Feedback
Priority ⇒ 1. Low
Reply to this comment
Possibly related to Bug: 13711.

Either way, I would need a copy of an email that exhibits this behavior.
812 bohdan (dot) s (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ HTML emails not showing correctly
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
Reply to this comment
Since updating to ActiveSync 2.20.4 HTML some emails are showing as 
HTML code rather than showing correctly on iOS devices.

Saved Queries