ispman/lib mailbox_actions_cyrus.lib,1.2.2.3,1.2.2.4
Pedro Algarvio <[email protected]> Thu, 05 Oct 2006 11:51:57 +0000
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/lib
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3356/lib
Modified Files:
Tag: dev_1_3-cyrus_virtdomain2
mailbox_actions_cyrus.lib
Log Message:
Minor correction on config vars.
Index: mailbox_actions_cyrus.lib
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/mailbox_actions_cyrus.lib,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -d -r1.2.2.3 -r1.2.2.4
--- mailbox_actions_cyrus.lib 5 Oct 2006 09:43:26 -0000 1.2.2.3
+++ mailbox_actions_cyrus.lib 5 Oct 2006 11:51:55 -0000 1.2.2.4
@@ -6,8 +6,8 @@
sub email2uid {
my $str = shift;
( $uid, $domain ) = split( '@', $str );
- if ( lc( $ISPMan::Config->{'AllowFullEmailLogins'} ) == 'yes' ) {
- if ( lc( $ISPMan::Config->{'CyrusUnixHierarchySep'} ) == 'yes' ) {
+ if ( lc( $ispman->getConf("allowFullEmailLogins") ) == 'yes' ) {
+ if ( lc( $ispman->getConf('cyrusUnixHierarchySep') ) == 'yes' ) {
if ($uid) {
$uid =~s/\./\\./g;
}
@@ -27,7 +27,7 @@
sub get_correct_mailbox {
my $mbox = shift;
- if ( lc( $ISPMan::Config->{'AllowFullEmailLogins'} ) == 'yes' ) {
+ if ( lc( $ispman->getConf("allowFullEmailLogins") ) == 'yes' ) {
$tmbox = $ispman->getUserInfo($mbox);
return $tmbox->{'mailLocalAddress'};
}
@@ -39,7 +39,7 @@
my $imap_mailbox_prefix = $ispman->getConf('imapMailboxPrefix');
my $sep = '.';
-if ( lc( $ISPMan::Config->{'CyrusUnixHierarchySep'} ) == 'yes' ) {
+if ( lc( $ispman->getConf("cyrusUnixHierarchySep") ) == 'yes' ) {
$sep = '/';
$imap_mailbox_prefix .= $sep;
} else {
@@ -94,7 +94,7 @@
if ( $imap_conn->list($mailbox) ) {
# mailbox exists. Lets continue
- if ( lc( $ISPMan::Config->{'AllowFullEmailLogins'} ) == 'yes' ) {
+ if ( lc( $ispman->getConf("allowFullEmailLogins") ) == 'yes' ) {
( $addr_start, $addr_end ) = split( '@', $addr );
if ( $imap_conn->list( join '',
( $imap_mailbox_prefix, $addr_start, $sep, $folder, '@', $addr_end)) ) {
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV