diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 3a0997ba39..9ec94b369c 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3721,9 +3721,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2); } if (!$importFailed) { - list($width, $height) = explode('x', Link::get_registry('mail', 'add_popup')); - if ($width > 0 && $height > 0) Api\Json\Response::get()->call('resizeTo', $width, $height); - ExecMethod2('mail.mail_ui.displayMessage',$linkData); + Api\Json\Response::get()->call('egw.open', $linkData['id'], 'mail', 'view'); + Api\Json\Response::get()->call('window.close'); return; } }