From 8ed0d71a42bdb66faf6ecc9db45ec594d479a610 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 29 May 2002 11:35:36 +0000 Subject: [PATCH 1/1] fix for sending MDN with the javascript confirm dialog. The old method didn't sent a MDN (at least with IE6) !!! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2896 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 810e158a..cc76a830 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -261,7 +261,6 @@ function SendMDN ( $recipient , $sender) { function ToggleMDNflag ( $set ) { global $imapConnection, $passed_id, $mailbox; sqimap_mailbox_select($imapConnection, $mailbox); - $sg = $set?'+':'-'; $cmd = 'STORE ' . $passed_id . ' ' . $sg . 'FLAGS ($MDNSent)'; $read = sqimap_run_command ($imapConnection, $cmd, true, $response, @@ -920,7 +919,6 @@ if ($default_use_mdn) { $read = sqimap_run_command ($imapConnection, "FETCH $passed_id FLAGS", true, $response, $readmessage); - $MDN_flag_present = preg_match( '/.*\$MDNSent/i', $read[0]); if (trim($MDN_to) && @@ -987,8 +985,7 @@ if ($default_use_mdn) { " if (window.confirm(\"" . _("The message sender has requested a response to indicate that you have read this message. Would you like to send a receipt?") . "\")) { \n" . - " window.location=($url); \n" . - ' window.location.reload()' . "\n" . + ' window.open('.$url.',"_self")' . "\n" . ' }' . "\n" . '// -->' . "\n" . '' . "\n"; -- 2.25.1