Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117867832
D5538.1775323520.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
D5538.1775323520.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5538: Migrate IMAP metadata
Attached
Detach File
Event Timeline