make sure we use the current icServerID when calling import_mail

This commit is contained in:
Klaus Leithoff 2012-11-21 11:43:20 +00:00
parent 4b4308dcff
commit 90edebaa72

View File

@ -2410,7 +2410,8 @@ else
{
//echo __METHOD__.'<br>';
//_debug_array($_attachments);
$bofelamimail = felamimail_bo::getInstance();
$icServerID =& egw_cache::getSession('felamimail','activeProfileID');
$bofelamimail = felamimail_bo::getInstance(true,$icServerID);
$bofelamimail->openConnection();
foreach ($_attachments as $attachment)
{
@ -2486,7 +2487,8 @@ else
}
elseif ($uid && $mailbox)
{
$bofelamimail = felamimail_bo::getInstance();
$icServerID =& egw_cache::getSession('felamimail','activeProfileID');
$bofelamimail = felamimail_bo::getInstance(true,$icServerID);
$bofelamimail->openConnection();
$bofelamimail->reopen($mailbox);