git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@444 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent e7ed314f50
commit ccc1b90236

@ -322,6 +322,9 @@ $CONF['show_custom_colors']=array("lightgreen","lightblue");
// $CONF['create_mailbox_subdirs']=array('Spam'); // $CONF['create_mailbox_subdirs']=array('Spam');
// $CONF['create_mailbox_subdirs_host']='localhost'; // $CONF['create_mailbox_subdirs_host']='localhost';
// //
// Specify '' for Dovecot and 'INBOX.' for Courier.
$CONF['create_mailbox_subdirs_prefix']='';
//
// Normally, the TCP port number does not have to be specified. // Normally, the TCP port number does not have to be specified.
// $CONF['create_mailbox_subdirs_hostport']=143; // $CONF['create_mailbox_subdirs_hostport']=143;
// //

@ -1915,6 +1915,7 @@ function create_mailbox_subfolders($login,$cleartext_password)
} }
$s_host=$CONF['create_mailbox_subdirs_host']; $s_host=$CONF['create_mailbox_subdirs_host'];
$s_prefix=$CONF['create_mailbox_subdirs_prefix'];
$s_options=''; $s_options='';
$s_port=''; $s_port='';
@ -1957,7 +1958,7 @@ function create_mailbox_subfolders($login,$cleartext_password)
foreach($CONF['create_mailbox_subdirs'] as $f) foreach($CONF['create_mailbox_subdirs'] as $f)
{ {
$f='{'.$s_host.'}INBOX.'.$f; $f='{'.$s_host.'}'.$s_prefix.$f;
$res=imap_createmailbox($i,$f); $res=imap_createmailbox($i,$f);
if (!$res) { if (!$res) {
@imap_close($i); @imap_close($i);

Loading…
Cancel
Save