From: tokul Date: Wed, 1 Mar 2006 21:15:00 +0000 (+0000) Subject: don't include delimiter in subscription command, when noselect mailbox is created X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5221db27bd4081108969d75e919f82314a3dbf4a;p=squirrelmail.git don't include delimiter in subscription command, when noselect mailbox is created git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10845 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 684b34b0..41d8fd53 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -401,11 +401,13 @@ function sqimap_mailbox_select ($imap_stream, $mailbox) { function sqimap_mailbox_create ($imap_stream, $mailbox, $type) { global $delimiter; if (strtolower($type) == 'noselect') { - $mailbox .= $delimiter; + $create_mailbox = $mailbox . $delimiter; + } else { + $create_mailbox = $mailbox; } $read_ary = sqimap_run_command($imap_stream, 'CREATE ' . - sqimap_encode_mailbox_name($mailbox), + sqimap_encode_mailbox_name($create_mailbox), true, $response, $message); sqimap_subscribe ($imap_stream, $mailbox); }