Page MenuHomePhorge

D5538.1775323520.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5538.1775323520.diff

diff --git a/src/app/DataMigrator/Driver/IMAP.php b/src/app/DataMigrator/Driver/IMAP.php
--- a/src/app/DataMigrator/Driver/IMAP.php
+++ b/src/app/DataMigrator/Driver/IMAP.php
@@ -117,6 +117,14 @@
}
*/
}
+
+ // Metadata
+ if (!empty($folder->metadata)) {
+ \Log::info("Setting METADATA " . var_export($folder->metadata, true));
+ if (!$this->imap->setMetadata($mailbox, $folder->metadata)) {
+ \Log::warning("Failed to set METADATA for {$mailbox} on the folder: {$this->imap->error}");
+ }
+ }
}
/**
@@ -210,6 +218,18 @@
\Log::warning("Failed to get ACL for the folder: {$this->imap->error}");
}
}
+
+ if ($this->imap->getCapability('METADATA')) {
+ $meta_keys = [
+ '/shared/vendor/kolab/folder-type',
+ '/private/vendor/kolab/folder-type',
+ '/shared/vendor/kolab/uniqueid',
+ '/shared/vendor/kolab/color',
+ '/private/vendor/kolab/color'
+ ];
+ $folder->metadata = $this->imap->getMetadata($mailbox, $meta_keys)[$mailbox] ?? null;
+ }
+
}
/**

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 5:25 PM (3 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18830550
Default Alt Text
D5538.1775323520.diff (1 KB)

Event Timeline