6.0.0-alpha14
7/2/25

[#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/2014 (3867 days ago)
Due
Updated 12/08/2014 (3859 days ago)
Assigned 12/05/2014 (3862 days ago)
Resolved 12/05/2014 (3862 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/08/2014 09:50:56 PM 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.
12/08/2014 09:46:20 PM 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.
12/08/2014 09:41:51 PM 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.
12/08/2014 09:40:02 PM 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.
12/08/2014 09:30:15 PM bohdan (dot) s (at) gmail (dot) com Comment #30 Reply to this comment
Any updates on when 2.20.6 will be available?
12/06/2014 02:39:14 AM bohdan (dot) s (at) gmail (dot) com Comment #29 Reply to this comment
Thank you, I will test when its available via pear.
12/05/2014 02:50:37 PM Michael Rubinsky Comment #28
State ⇒ Resolved
Reply to this comment
Horde_ActiveSync 2.20.6
12/05/2014 02:48:36 PM 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
12/05/2014 07:53:01 AM 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?
12/05/2014 07:50:39 AM bohdan (dot) s (at) gmail (dot) com Comment #25
New Attachment: image2(1).png Download
Reply to this comment
Screenshot 2.5.2 (working)
12/05/2014 07:49:27 AM 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)
12/05/2014 07:48:25 AM bohdan (dot) s (at) gmail (dot) com Comment #23
New Attachment: example3.eml Download
Reply to this comment
Last Example.
Attached in the source
12/05/2014 07:43:14 AM 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.
12/05/2014 07:35:35 AM 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.
12/05/2014 07:30:30 AM 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.

12/05/2014 07:26:01 AM 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.
12/05/2014 07:16:36 AM 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).
12/05/2014 07:15:50 AM bohdan (dot) s (at) gmail (dot) com Comment #17
New Attachment: image1(1).PNG Download
Reply to this comment
Uploading this time, sorry
12/05/2014 07:13:32 AM Michael Rubinsky Comment #16 Reply to this comment
Screenshot of example2.eml
No attachment.
12/05/2014 07:08:12 AM bohdan (dot) s (at) gmail (dot) com Comment #15 Reply to this comment
Screenshot of example2.eml
12/05/2014 07:06:27 AM 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
12/05/2014 07:04:38 AM 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?
12/05/2014 07:00:21 AM 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.
12/05/2014 06:59:02 AM 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.
12/05/2014 06:57:52 AM 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.
12/05/2014 06:57:19 AM bohdan (dot) s (at) gmail (dot) com Comment #9
New Attachment: image2.PNG Download
Reply to this comment
Part2
12/05/2014 06:56:42 AM 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
12/05/2014 06:52:19 AM 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.
12/05/2014 06:43:26 AM 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.
12/05/2014 03:05:40 AM Michael Rubinsky Comment #5 Reply to this comment
Also, please see if this is fixed now that Bug: 13711 is fixed.
12/04/2014 07:47:35 PM 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.
11/30/2014 03:01:33 AM 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.
11/30/2014 02:57:37 AM 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.
11/30/2014 12:33:08 AM 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