SF.net SVN: postfixadmin:[444] trunk
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2008-08-14 18:58:03
|
Revision: 444
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=444&view=rev
Author: GingerDog
Date: 2008-08-14 18:58:13 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
imap-prefix patch - see https://sourceforge.net/tracker/index.php?func=detail&aid=2049852&group_id=191583&atid=937964 , apparently useful for courier
Modified Paths:
--------------
trunk/config.inc.php
trunk/functions.inc.php
Modified: trunk/config.inc.php
===================================================================
--- trunk/config.inc.php 2008-08-14 18:50:33 UTC (rev 443)
+++ trunk/config.inc.php 2008-08-14 18:58:13 UTC (rev 444)
@@ -322,6 +322,9 @@
// $CONF['create_mailbox_subdirs']=array('Spam');
// $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.
// $CONF['create_mailbox_subdirs_hostport']=143;
//
Modified: trunk/functions.inc.php
===================================================================
--- trunk/functions.inc.php 2008-08-14 18:50:33 UTC (rev 443)
+++ trunk/functions.inc.php 2008-08-14 18:58:13 UTC (rev 444)
@@ -1915,6 +1915,7 @@
}
$s_host=$CONF['create_mailbox_subdirs_host'];
+ $s_prefix=$CONF['create_mailbox_subdirs_prefix'];
$s_options='';
$s_port='';
@@ -1957,7 +1958,7 @@
foreach($CONF['create_mailbox_subdirs'] as $f)
{
- $f='{'.$s_host.'}INBOX.'.$f;
+ $f='{'.$s_host.'}'.$s_prefix.$f;
$res=imap_createmailbox($i,$f);
if (!$res) {
@imap_close($i);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|