From f335a5ec96fbbffaddf6f3e706029bd156277909 Mon Sep 17 00:00:00 2001 From: A Sigalas Date: Tue, 19 Sep 2017 10:47:10 +0000 Subject: [PATCH] Show 'To' address in mail notifications --- mail/inc/class.mail_hooks.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_hooks.inc.php b/mail/inc/class.mail_hooks.inc.php index 780ecea2ba9..c98df2c572b 100644 --- a/mail/inc/class.mail_hooks.inc.php +++ b/mail/inc/class.mail_hooks.inc.php @@ -558,6 +558,7 @@ static function notification_check_mailbox() 'mail_subject' => Mail::adaptSubjectForImport($recent_message['subject']), 'mail_from' => !empty($recent_message['sender_name']) ? $recent_message['sender_name'] : $recent_message['sender_address'], 'mail_received' => $recent_message['date'], + 'mail_to' => $recent_message['to_address'], ); // save notification status $notified_mail_uidsCache[$activeProfile][$recent_message['folder']][] = mail_ui::generateRowID($activeProfile, $recent_message['folder'], $recent_message['uid'], $_prependApp=false); @@ -567,7 +568,7 @@ static function notification_check_mailbox() if ($mail['mail_from']) { $notification_message .= "
".lang("From").':'. $mail["mail_from"]. - "
".lang("To").':'. $mail["recieved"]. + "
".lang("To").':'. $mail["mail_to"]. "
".lang ("subject"). ':' . $mail["mail_subject"]. "

--------------------------------------------------------
"; }