Hi,
I had some issues with my new and very first Windows 10 mobile phone using calendar sync through Exchange Activesync (EAS) and built in Outlook calendar app.
The calendar description is synched wrong or not at all.
I fixed it with editing file egroupware/activesync/inc/class.activesync_backend.inc.php :
First, for synching eGW to phone the items have their body set to $bodypreference[1] sent to function note2messagenote , the code there expects only $bodypreference[2] . So I changed the code to accept [1] as well as [2] to run through html wrapping for the message body (and truncation).
But this wasn’t enough, W10mobile Outlook app seems not to be able to render
s properly. It needs paragraphs instead.
So I changed the html wrapping code to
'<body><p style="font-size: 14.0pt;">'.
str_replace(array("\n","\r","\r\n"),"</p><p style=\"font-size: 14.0pt;\">",$note).
'</p></body>'.
Second, when creating a new calendar item on the phone and synching it to eGW the description gets lost.
It turned out that the item had $airsyncbasebody->type set to 2 when sent to function messagenote2note in the same file as above, so I added a case ‘2’ with
case '2' : $body = html_entity_decode( strip_tags( str_replace('</p>', "\n", $airsyncbasebody->data) ) );
break;
Outlook app allows to create calendar description like an html email (for example colored text and stuff). These kind of decorations gets removed. Hope everyone can live with that.
Maybe my code suggestions help addressing (and fixing) the issues.
Cheers,
Ulle