summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-12 09:45:21 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-03-12 09:45:21 (GMT)
commitd71c57e8c3f7fd12d7f0ce311df54beacb8d71d2 (patch)
tree88b0888a4e36efd3185305689378193f889581dc
parent818db9475d4c02c26981a741827c5ec63bc08f84 (diff)
downloadkolab-syncroton-d71c57e8c3f7fd12d7f0ce311df54beacb8d71d2.tar.gz
Don't send MIME if MimeSupport is not set (Bug #1688)
-rw-r--r--lib/kolab_sync_data_email.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 45ac1b9..6959e71 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -237,13 +237,15 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
}
else {
+ // The spec is not very clear, but it looks that if MimeSupport is not set
+ // we can't add Syncroton_Command_Sync::BODY_TYPE_MIME to the supported types
+ // list below (Bug #1688)
$types = array(
- Syncroton_Command_Sync::BODY_TYPE_MIME,
Syncroton_Command_Sync::BODY_TYPE_HTML,
Syncroton_Command_Sync::BODY_TYPE_PLAIN_TEXT,
);
- // @TODO: client can support both HTML and TEXT use one of
+ // @TODO: if client can support both HTML and TEXT use one of
// them which is better according to the real message body type
foreach ($types as $type) {