Donate Share

IMAP Migration Tool

Tracker: Patches

5 Subscribe created mailboxes - ID: 1838553
Last Update: Attachment added ( gerundt )

The archive.php script don't subscribe to created mailboxes. This patch fix
it:

-------------------------8<-------------------------
--- scripts/archive.php.org Wed May 12 20:55:58 2004
+++ scripts/archive.php Mon Nov 26 09:21:20 2007
@@ -48,6 +48,9 @@
function createmailbox($mbox, $server, $mailbox) {
global $src_username;
if (@imap_createmailbox($mbox,imap_utf7_encode("{" . $server .
"}$mailbox"))) {
+
+ @imap_subscribe($mbox, "{" . $server . "}" . $mailbox);
+
$status = @imap_status($mbox,"{" . $server . "}" . $mailbox,SA_ALL);
if($status) {
print("$src_username - $mailbox:\n");
------------------------->8-------------------------

Greetings,
Tim Gerundt


Tim Gerundt ( gerundt ) - 2007-11-26 08:56

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
subscribe_created_mailboxes.patch patch file Download

Change ( 1 )

Field Old Value Date By
File Added 256076: subscribe_created_mailboxes.patch 2007-11-26 08:56 gerundt