mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:38:54 +01:00
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.
This commit is contained in:
parent
0e60f6ac29
commit
e9b9c61a60
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user