Page MenuHomePhorge

D4517.1774888398.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D4517.1774888398.diff

diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -464,6 +464,8 @@
$result['categories'] = $this->getKolabTags($message);
}
+ $is_ios = preg_match('/(iphone|ipad)/i', $this->device->devicetype);
+
// attachments
$attachments = array_merge($message->attachments, $message->inline_parts);
if (!empty($attachments)) {
@@ -472,6 +474,10 @@
foreach ($attachments as $attachment) {
$att = array();
+ if ($is_ios && !empty($event) && $attachment->mime_id == $event['_mime_id']) {
+ continue;
+ }
+
$filename = rcube_charset::clean($attachment->filename);
if (empty($filename) && $attachment->mimetype == 'text/html') {
$filename = 'HTML Part';
@@ -1799,9 +1805,12 @@
foreach ($ical_objects as $mime_id => $event) {
if ($event['_type'] == 'event') {
$event['_method'] = $ical_objects->method;
+ $event['_mime_id'] = $ical_objects->mime_id;
+
return $event;
}
}
+
return null;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 30, 4:33 PM (6 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18817251
Default Alt Text
D4517.1774888398.diff (1 KB)

Event Timeline