6.0.0-beta1
7/8/25

[#12797] HTML code in description table with Outlook 2013 and ActiveSync
Summary HTML code in description table with Outlook 2013 and ActiveSync
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester anportel (at) tiscali (dot) it
Created 10/25/2013 (4274 days ago)
Due 10/20/2013 (4279 days ago)
Updated 10/30/2013 (4269 days ago)
Assigned 10/28/2013 (4271 days ago)
Resolved 10/30/2013 (4269 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/30/2013 02:47:20 PM Michael Rubinsky State ⇒ Resolved
 
10/30/2013 02:46:20 PM Git Commit Comment #32 Reply to this comment
Changes have been made in Git (master):

commit 997cdeafba9340796910e596f52febb08eb57b98
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Oct 30 10:45:25 2013 -0400

     Convert incoming HTML ActiveSync task body to plaintext.

     Bug: 12797

  nag/lib/Task.php |    6 +++++-
  1 files changed, 5 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/997cdeafba9340796910e596f52febb08eb57b98
10/29/2013 04:47:43 PM anportel (at) tiscali (dot) it Comment #31 Reply to this comment

[Show Quoted Text - 15 lines]
SOLVEDDDD!!!!! This is a Microsoft Update patch.... I think that the 
problem is solved by KB2825632. Now my Outlook version is changed in 
15.0.4535.1006

Thank you very much!! :-D
10/29/2013 03:13:29 PM Michael Rubinsky Comment #30 Reply to this comment
To me it would be fine that would send only text as description. I 
do not understand why Outlook believes that Horde is a real exchange 
server.
It doesn't. If it did, it would not be talking ActiveSync to it, and 
therefor would not be able to talk to it at all.
What version of Outlook are you using? My version is 15.0.4420.1017.
I'm not in my office at the moment so I don't know the exact version 
string. All I know is that it's a fully registered, and up to date 
version (as per Windows Update, anyway) of Outlook 2013. I can verify 
the version number when I'm back.
Could be the Apache configuration or version that make this mistake? :-(
No. That has nothing to do with the data that OL is sending over Wbxml.
10/29/2013 03:03:20 PM anportel (at) tiscali (dot) it Comment #29 Reply to this comment
So, I would use Horde Webmail to synchronize data in the correct way,
I can do it or do I must to install a version from git?
No, but you do need to wait until the various fixes make it into a 
release...or figure out your version of Outlook seems to be the only 
one sending full HTML documents for description fields.
To me it would be fine that would send only text as description. I do 
not understand why Outlook believes that Horde is a real exchange 
server. What version of Outlook are you using? My version is 
15.0.4420.1017. Could be the Apache configuration or version that make 
this mistake? :-(
10/29/2013 02:30:50 PM Michael Rubinsky Comment #28 Reply to this comment
So, I would use Horde Webmail to synchronize data in the correct 
way, I can do it or do I must to install a version from git?
No, but you do need to wait until the various fixes make it into a 
release...or figure out your version of Outlook seems to be the only 
one sending full HTML documents for description fields.
10/28/2013 03:33:48 PM anportel (at) tiscali (dot) it Comment #27 Reply to this comment

[Show Quoted Text - 36 lines]
Sorry for misunderstanding... i've searched only a ticketing system of 
Horde and posted under Synchronization section... :-( On post #8 I've 
write:
I installed the 5.1.2 version of  Horde Webmail.
So, I would use Horde Webmail to synchronize data in the correct way, 
I can do it or do I must to install a version from git?

10/28/2013 03:23:10 PM Michael Rubinsky Comment #26
State ⇒ Assigned
Reply to this comment
This is my installation:

pear install horde/horde_role
pear run-scripts horde/horde_role
pear install -a -B horde/webmail
mysql -u root -p
create database horde;
webmail-install
Well, you created this ticket under "Git Master" which is NOT what you 
have installed.

[Show Quoted Text - 17 lines]
Heh, that would be nice, but they talk completely different protocols. 
OL will not talk ActiveSync to a real Exchange server (not without 
some hacks to the registry anyway).

Anyway,  I see Nag still needs to be fixed to handle the incoming HTML 
data if it's present.
10/28/2013 03:15:25 PM anportel (at) tiscali (dot) it Comment #25 Reply to this comment

[Show Quoted Text - 9 lines]
It's right, see my example in the first post

<TITLE>Uffaaa</TITLE>
10/28/2013 03:11:43 PM anportel (at) tiscali (dot) it Comment #24 Reply to this comment

[Show Quoted Text - 26 lines]
This is my installation:

pear install horde/horde_role
pear run-scripts horde/horde_role
pear install -a -B horde/webmail
mysql -u root -p
create database horde;
webmail-install

Nothing else... :-(

I've configured apache to work with a REAL (trial) ssl cert because 
without it outlook could not discover and authenticate with activcesync
Same here.

This is very bizarre. Various Microsoft, Exchange, and Outlook 
forums, as well as official Microsoft support channels, all indicate 
that HTML/RTF text is NOT used for items that are synchronized over 
ActiveSync - only with true Exchange connectivity or local IMAP/POP3 
accounts.
Maybe you have make a good work, Outlook thinks that Horde is a REAL 
Exchange server.. :-D
10/28/2013 03:02:06 PM Michael Rubinsky Comment #23 Reply to this comment
Have you see my screenshots in attachment?
Yes, but as I said, I don't see this locally.
The only other possibility I can think of is that the HTML that is 
being sent from OL2013 (which I still can't produce) contains the 
Title and Description in it - so when it's parsed on the Horde side it 
also contains both. In which case there is nothing we can do about that.
10/28/2013 02:59:06 PM Michael Rubinsky Comment #22 Reply to this comment
Have you see my screenshots in attachment?
Yes, but as I said, I don't see this locally.
I had also written in the first post that the problem appeared in 
all the descriptions of tasks, calendar, notes, and contacts.
...and I still don't see this.
To install horde I followed the instructions from the website, I use 
ubuntu 12.04 server  as a distribution, it may be something I have 
not installed or any package that is not working properly with Horde?
I doubt it. The code that takes care of importing changes into 
Kronolith from ActiveSync is all contained in 
Kronolith_Event::fromASAppointment() (in Kronolith/lib/Event.php). In 
reviewing the code I don't see ANYWHERE that the title can be 
concatenated to the description. Are you running a pristine Git 
checkout, are you sure you don't have any local edits, or maybe a 
corrupt merge or something? Otherwise you are going to have to trace 
the code yourself to find out where this is happening for you.
When installing office 2013 I did not set any particular 
configuration ... just fresh install...
Same here.

This is very bizarre. Various Microsoft, Exchange, and Outlook forums, 
as well as official Microsoft support channels, all indicate that 
HTML/RTF text is NOT used for items that are synchronized over 
ActiveSync - only with true Exchange connectivity or local IMAP/POP3 
accounts.
10/28/2013 02:37:44 PM anportel (at) tiscali (dot) it Comment #21 Reply to this comment

[Show Quoted Text - 19 lines]
Have you see my screenshots in attachment? I had also written in the 
first post that the problem appeared in all the descriptions of tasks, 
calendar, notes, and contacts. To install horde I followed the 
instructions from the website, I use ubuntu 12.04 server  as a 
distribution, it may be something I have not installed or any package 
that is not working properly with Horde? When installing office 2013 I 
did not set any particular configuration ... just fresh install...  :-(
10/28/2013 02:19:16 PM Michael Rubinsky Comment #20 Reply to this comment
Yes, now it work correctly :-) One thing only, the subject repeat in 
the description field.
I don't see this.
From horde to outlook not work, outlook can't see the description 
field of horde.
I don't see this either.

All calendar entries entered in OL2013 are showing up correctly in 
Horde and all entries entered in Kronolith are correctly being sync'd 
to OL2013.
I remember to you that the problem it's not only in calendar module, 
also in tasks, notes and other else that have a description field
So, you are saying that this is working in calendar, but is now broken 
in tasks and notes?
10/28/2013 07:57:28 AM anportel (at) tiscali (dot) it Comment #19
New Attachment: Shoots.zip Download
Reply to this comment
I have added code to convert HTML -> text when appropriate, though I 
still can't reproduce this. Does current git fix this for you?
Yes, now it work correctly :-) One thing only, the subject repeat in 
the description field. From horde to outlook not work, outlook can't 
see the description field of horde.

I remember to you that the problem it's not only in calendar module, 
also in tasks, notes and other else that have a description field

Thank you :-)
10/28/2013 03:45:46 AM Michael Rubinsky Comment #18
State ⇒ Feedback
Reply to this comment
I have added code to convert HTML -> text when appropriate, though I 
still can't reproduce this. Does current git fix this for you?
10/28/2013 03:44:25 AM Git Commit Comment #17 Reply to this comment
Changes have been made in Git (master):

commit ae4ea3aeeb6a8ab6e7f5ed735682782ad3e0bf65
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun Oct 27 23:18:48 2013 -0400

     Fix handling event descriptions if they are provided in HTML/RTF.

     Possible fix for Bug: 12797

  kronolith/lib/Event.php |   21 +++++++++++++--------
  1 files changed, 13 insertions(+), 8 deletions(-)

http://git.horde.org/horde-git/-/commit/ae4ea3aeeb6a8ab6e7f5ed735682782ad3e0bf65
10/28/2013 03:01:32 AM Michael Rubinsky Comment #16 Reply to this comment
I've actually verified with Microsoft Support that it is NOT possible 
to use HTML/RTF in the description field of an ActiveSync calendar 
calendar. HTML/RTF is only supported in calendar description fields 
when Outlook is using a .pst file.

No idea how you managed to get HTML data in there. Did you copy/paste 
from somewhere else? Are you sure this even originated in an Outlook 
calendar?
10/26/2013 04:36:20 PM anportel (at) tiscali (dot) it Comment #15 Reply to this comment
Thanks. Indeed, Outlook is telling Horde that it wants HTML data, 
though I don't see that here. Where is the pref that you said you 
see for RTF/HTML for the calendar data? I can't seem to locate that.
The only settings it's for the email, not specific for the calendar. 
The only settings that passing changes in calendar, tasks etc is in 
Advanced tab related to International Settings

10/26/2013 04:23:01 PM Michael Rubinsky Comment #14 Reply to this comment
Thanks. Indeed, Outlook is telling Horde that it wants HTML data, 
though I don't see that here. Where is the pref that you said you see 
for RTF/HTML for the calendar data? I can't seem to locate that.
10/26/2013 04:12:40 PM anportel (at) tiscali (dot) it Comment #13
New Attachment: outlook_sync_log.zip Download
Reply to this comment
Can you provide a synclog? I need to see if OL is using the RTF 
BODYPREFS or not.
Here the sync log
10/26/2013 03:55:39 PM anportel (at) tiscali (dot) it Comment #12 Reply to this comment
Can you provide a synclog? I need to see if OL is using the RTF 
BODYPREFS or not.
it's true,  there is no way to remove the text formatting. outlook 
defaults to HTML. I looked in the settings and I set where I found RTF 
to HTML. Sure, one moment, i send to you the sync log
10/26/2013 03:47:17 PM Michael Rubinsky Comment #11 Reply to this comment
Can you provide a synclog? I need to see if OL is using the RTF 
BODYPREFS or not.

10/26/2013 03:41:40 PM Michael Rubinsky Comment #10
State ⇒ Assigned
Assigned to Michael Rubinsky
Reply to this comment
That is very bizarre. I can't find any settings or switches to enable 
HTML in those fields. I have a fully registered, up to date version of 
Office 2013 Professional and I don't see anything like that.

Still, it won't be too hard to filter out HTML from the input stream.
10/25/2013 09:40:11 PM anportel (at) tiscali (dot) it Comment #9
New Attachment: Cattura.PNG Download
Reply to this comment

[Show Quoted Text - 16 lines]
This image refer to a new installation to another PC
10/25/2013 09:04:14 PM anportel (at) tiscali (dot) it Comment #8 Reply to this comment
I don't see this at all. In Outlook 2013, I see all of the 
descriptions filled in from events created with Horde. Also, any new 
events created in OL2013 with descriptions are correctly sync'd with 
Horde. In fact, I can't create any HTML in OL2013 calendar 
descriptions at all. Maybe some OL pref?
I?ve downloaded a trial version of Office 2013 Pro Plus with 
activation code valid for 60 days. I tried to uninstall it and 
reinstall it but I can?t  choose whether to use the plain text or html 
format in calendar or tasks or notes. I installed the 5.1.2 version of 
Horde Webmail. I have read on the web that for a some time also in 
Outlook.com account are not enabled for a html format but you can only 
enter a plain text on calendars and notes, so I also tried on a 
hotmail account if it worked with plain text but does compose in HTML 
and there you can see properly  also trough webmail
10/25/2013 08:51:32 PM Michael Rubinsky Comment #7
State ⇒ Feedback
Reply to this comment
I don't see this at all. In Outlook 2013, I see all of the 
descriptions filled in from events created with Horde. Also, any new 
events created in OL2013 with descriptions are correctly sync'd with 
Horde. In fact, I can't create any HTML in OL2013 calendar 
descriptions at all. Maybe some OL pref?
10/25/2013 06:49:41 PM anportel (at) tiscali (dot) it Comment #6 Reply to this comment
So you are saying that  the issue is that Outlook 2013 only creates
the descriptive text as HTML, correct?
Yes, it's correct. I don't have found a solution for this problem. 
It's recognized bug? Is there a way to fix it or is my installation 
that is missing of something? Can you help me please? thanks
This is correct, but the problem it's also that when i create a event 
(or other that have a description field) with the web interface or 
with an android device, outlook can't show the text inserted, it 
return only a blank description
10/25/2013 06:33:02 PM anportel (at) tiscali (dot) it Comment #5 Reply to this comment
So you are saying that  the issue is that Outlook 2013 only creates 
the descriptive text as HTML, correct?
Yes, it's correct. I don't have found a solution for this problem. 
It's recognized bug? Is there a way to fix it or is my installation 
that is missing of something? Can you help me please? thanks
10/25/2013 06:21:10 PM Michael Rubinsky Comment #4 Reply to this comment
So you are saying that  the issue is that Outlook 2013 only creates 
the descriptive text as HTML, correct?


10/25/2013 05:55:38 PM anportel (at) tiscali (dot) it Comment #3 Reply to this comment
I'm not sure I understand what you think the bug is. Can you please 
elaborate more?
The Bug is that with the webmail or the activesync mobile device it's 
impossible to view correctly the description of calendar, task, note 
or contacts synced with Outlook 2013 . It show only the source HTML 
code like this for  example

Otherwise, when i put a new Event with Android device, the webmail and 
the device show correctly the description but in Outlook 2013 the 
field is empty
10/25/2013 05:36:43 PM Michael Rubinsky Comment #2
Priority ⇒ 1. Low
Reply to this comment
I'm not sure I understand what you think the bug is. Can you please 
elaborate more?


10/25/2013 05:27:14 PM anportel (at) tiscali (dot) it Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 10/20/2013
Summary ⇒ HTML code in description table with Outlook 2013 and ActiveSync
Type ⇒ Bug
Queue ⇒ Synchronization
Reply to this comment
Hello

I've installed Horde with Active Directory authentication and I've 
used postfix and dovecot as IMAP and SMTP. I'm testing to synchronize 
with Outlook 2013 and other smartphones. All works correctly, but in 
the "description" of tasks, calendar and contacts with Outlook 2013 I 
find in the database of Horde the HTML code which obviously neither 
the webmail nor the other devices can interpreting. In web search i 
haven't found any solution to the problem, neither even references of 
someone who has encountered the same problem. How can i solve this 
problem?

The HTML code in event_description table it's like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version rmj.rmm.rup.rpr">
<TITLE>Uffaaa</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P DIR=LTR><SPAN LANG="it"><FONT 
FACE="Calibri">EEHEHEHEHEHEHHEHE</FONT></SPAN><SPAN 
LANG="it"></SPAN></P>

</BODY>
</HTML>

thank you very much

Saved Queries