lib/kolab_sync_data_email.php
    Aleksander Machniak 
    machniak at kolabsys.com
       
    Fri Dec  7 15:24:13 CET 2012
    
    
  
 lib/kolab_sync_data_email.php |    8 ++++++++
 1 file changed, 8 insertions(+)
New commits:
commit 84b797fa5d952f711e9cbcfc68d3585944a50849
Author: Aleksander Machniak <alec at alec.pl>
Date:   Fri Dec 7 15:23:50 2012 +0100
    Support enriched format of email bodies
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index f808b5a..a7a468a 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -1094,11 +1094,19 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
         if ($html) {
             if ($part->ctype_secondary == 'html') {
             }
+            else if ($part->ctype_secondary == 'enriched') {
+                $body = rcube_enriched::to_html($body);
+            }
             else {
                 $body = '<pre>' . $body . '</pre>';
             }
         }
         else {
+            if ($part->ctype_secondary == 'enriched') {
+                $body = rcube_enriched::to_html($body);
+                $part->ctype_secondary = 'html';
+            }
+
             if ($part->ctype_secondary == 'html') {
                 $txt = new html2text($body, false, true);
                 $body = $txt->get_text();
    
    
More information about the commits
mailing list