Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117949047
D3292.1775487573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
828 B
Referenced Files
None
Subscribers
None
D3292.1775487573.diff
View Options
diff --git a/docker/kolab/utils/103-import-mailbox.sh b/docker/kolab/utils/103-import-mailbox.sh
new file mode 100755
--- /dev/null
+++ b/docker/kolab/utils/103-import-mailbox.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Run like so: utils/103-import-mailbox.sh /root/data/maildata/
+
+echo "sam user/john/* cyrus-admin c;
+dm user/john/Test@kolab.org;
+cm user/john/Test@kolab.org;
+sam user/john cyrus c;
+" | cyradm --auth PLAIN -u cyrus-admin -w Welcome2KolabSystems --port 11143 127.0.0.1
+
+echo "sam user/john/* cyrus c;
+subscribe Test;
+" | cyradm --auth PLAIN -u john@kolab.org -w simple123 --port 11143 127.0.0.1
+
+FOLDERPATH=/var/spool/imap/domain/k/kolab.org/j/user/john/Test
+mkdir -p $FOLDERPATH
+
+cp "$1"/* $FOLDERPATH/
+
+chown -R cyrus:mail $FOLDERPATH
+/usr/lib/cyrus-imapd/reconstruct "user/john/Test@kolab.org"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 2:59 PM (3 h, 57 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18836493
Default Alt Text
D3292.1775487573.diff (828 B)
Attached To
Mode
D3292: Import mailbox script
Attached
Detach File
Event Timeline