summaryrefslogtreecommitdiff
path: root/lib/kolab_sync_data_email.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-21 09:58:24 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-08-21 09:58:24 (GMT)
commit19efc41f2ff5647e4f801daf1f29cc59390e75f3 (patch)
tree6f81bac234c284fc022a61cf74e86fa5c24bc2b0 /lib/kolab_sync_data_email.php
parentbfda2ae15b2cb494ba8ef49ab79e0ea2253c9c77 (diff)
downloadkolab-syncroton-19efc41f2ff5647e4f801daf1f29cc59390e75f3.tar.gz
Code cleanup, fixes in empty values handling
Diffstat (limited to 'lib/kolab_sync_data_email.php')
-rw-r--r--lib/kolab_sync_data_email.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 8804cd6..582f171 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -250,16 +250,6 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
// Message body
if ($airSyncBaseType == 4) {
$messageBody = $this->storage->get_raw_body($message->uid);
-/*
- if ($this->asversion < 12) {
- // if the email contains non 7bit ascii characters we can't transfer
- // them via MIMEData xml and we need to fall back to plain text
- if (preg_match('/[^\x00-\x7F]/', $messageBody)) {
- $airSyncBaseType = 1;
- $messageBody = $this->getMessageBody($message);
- }
- }
-*/
}
else {
$messageBody = $this->getMessageBody($message, $airSyncBaseType == 2);
@@ -289,31 +279,6 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
$result['Body'] = $this->setBody($messageBody, $body_params);
-/*
- if ($this->asversion >= 12) {
- $body = $domParrent->appendChild(new DOMElement('Body', null, 'uri:AirSyncBase'));
- $body->appendChild(new DOMElement('Type', $airSyncBaseType, 'uri:AirSyncBase'));
- $body->appendChild(new DOMElement('Truncated', $isTruncacted, 'uri:AirSyncBase'));
- $body->appendChild(new DOMElement('EstimatedDataSize', $data->size, 'uri:AirSyncBase'));
-
- $dataTag = $body->appendChild(new DOMElement('Data', null, 'uri:AirSyncBase'));
- $dataTag->appendChild(new DOMText($messageBody));
- }
- else {
- if ($airSyncBaseType == 4) {
- $domParrent->appendChild(new DOMElement('MIMETruncated', $isTruncacted, 'uri:Email'));
-
- $body = $domParrent->appendChild(new DOMElement('MIMEData', null, 'uri:Email'));
- $body->appendChild(new DOMText($messageBody));
- }
- else {
- $domParrent->appendChild(new DOMElement('BodyTruncated', $isTruncacted, 'uri:Email'));
-
- $body = $domParrent->appendChild(new DOMElement('Body', null, 'uri:Email'));
- $body->appendChild(new DOMText($messageBody));
- }
- }
-*/
}
$result['NativeBodyType'] = intval($message->has_html_part(false));