From 90edebaa726a2937f332706e980b9ac0e7d88f7f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 21 Nov 2012 11:43:20 +0000 Subject: [PATCH] make sure we use the current icServerID when calling import_mail --- infolog/inc/class.infolog_ui.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index d698787d41..d556e49359 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -2410,7 +2410,8 @@ else { //echo __METHOD__.'
'; //_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);