From e9b9c61a608ef49252011161a5c148a9a302044b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 26 Nov 2009 15:40:12 +0000 Subject: [PATCH] fixing a problem regarding the session handling and content interchange of felamimail if notification for new emails is switched on. bofelamimail session information is now buffered and reapplied after notification run. --- notifications/inc/class.notifications_ajax.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/notifications/inc/class.notifications_ajax.inc.php b/notifications/inc/class.notifications_ajax.inc.php index 5013a80bee..db0f324540 100644 --- a/notifications/inc/class.notifications_ajax.inc.php +++ b/notifications/inc/class.notifications_ajax.inc.php @@ -135,6 +135,8 @@ class notifications_ajax { require_once(EGW_INCLUDE_ROOT.'/felamimail/inc/class.bofelamimail.inc.php'); $bofelamimail = new bofelamimail($GLOBALS['egw']->translation->charset()); + // buffer felamimail sessiondata, as they are needed for information exchange by the app itself + $bufferFMailSession = $bofelamimail->sessionData; if(!$bofelamimail->openConnection()) { // TODO: This is ugly. Log a bit nicer! error_log(self::_appname.' (user: '.$this->recipient->account_lid.'): cannot connect to mailbox. Please check your prefs!'); @@ -164,7 +166,9 @@ class notifications_ajax { } } } - + // restore the felamimail session data, as they are needed by the app itself + $bofelamimail->sessionData = $bufferFMailSession; + $bofelamimail->saveSessionData(); if(count($recent_messages) > 0) { // create notify message $notification_subject = lang("You've got new mail");