Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117906383
D4517.1775390031.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D4517.1775390031.diff
View Options
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
@@ -466,6 +466,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)) {
@@ -474,6 +476,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';
@@ -1801,9 +1807,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
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 11:53 AM (9 h, 47 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18833372
Default Alt Text
D4517.1775390031.diff (1 KB)
Attached To
Mode
D4517: Fix duplicated ics attachment in invitation email on iOS
Attached
Detach File
Event Timeline