first step to new Horde_Imap_Client based eMailAdmin classes for new mail app

This commit is contained in:
Ralf Becker 2013-10-22 15:30:25 +00:00
parent c799aad6be
commit fe2ef3ac1c
3 changed files with 6 additions and 6 deletions

View File

@ -759,7 +759,7 @@ class mail_bo
$foldersNameSpace = array(); $foldersNameSpace = array();
$delimiter = $this->getHierarchyDelimiter(); $delimiter = $this->getHierarchyDelimiter();
// TODO: cache by $this->icServer->ImapServerId // TODO: cache by $this->icServer->ImapServerId
if (is_null($nameSpace)) $nameSpace = $this->icServer->getNameSpaces(); if (is_null($nameSpace)) $nameSpace = $this->icServer->getNameSpaceArray();
if (is_array($nameSpace)) { if (is_array($nameSpace)) {
foreach($nameSpace as $type => $singleNameSpace) { foreach($nameSpace as $type => $singleNameSpace) {
$prefix_present = false; $prefix_present = false;

View File

@ -110,7 +110,7 @@ class mail_bopreferences extends mail_sopreferences
$accountData = array_shift($accountData); $accountData = array_shift($accountData);
//_debug_array($accountData); //_debug_array($accountData);
$icServer = CreateObject('emailadmin.defaultimap'); $icServer = new emailadmin_oldimap();
$icServer->ImapServerId = $accountData['id']; $icServer->ImapServerId = $accountData['id'];
$icServer->encryption = isset($accountData['ic_encryption']) ? $accountData['ic_encryption'] : 1; $icServer->encryption = isset($accountData['ic_encryption']) ? $accountData['ic_encryption'] : 1;
$icServer->host = $accountData['ic_hostname']; $icServer->host = $accountData['ic_hostname'];
@ -166,7 +166,7 @@ class mail_bopreferences extends mail_sopreferences
#_debug_array($accountData); #_debug_array($accountData);
foreach ($AllAccountData as $key => $accountData) foreach ($AllAccountData as $key => $accountData)
{ {
$icServer = CreateObject('emailadmin.defaultimap'); $icServer = new emailadmin_oldimap();
$icServer->ImapServerId = $accountData['id']; $icServer->ImapServerId = $accountData['id'];
$icServer->encryption = isset($accountData['ic_encryption']) ? $accountData['ic_encryption'] : 1; $icServer->encryption = isset($accountData['ic_encryption']) ? $accountData['ic_encryption'] : 1;
$icServer->host = $accountData['ic_hostname']; $icServer->host = $accountData['ic_hostname'];

View File

@ -61,7 +61,7 @@ class mail_ui
/** /**
* instance of mail_bo * instance of mail_bo
* *
* @var object * @var mail_bo
*/ */
var $mail_bo; var $mail_bo;