From 650be221922b9f47c180a751c1805e303b04a68d Mon Sep 17 00:00:00 2001 From: ullgren Date: Wed, 13 Feb 2002 21:21:01 +0000 Subject: [PATCH] renamed -> , sqimap_mailbox_select has five arguments and should not be called when we don't need it (sorry) ;-P git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2440 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 0cc85a0a..3dc6d278 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -210,7 +210,6 @@ function ToggleMDNflag ( $set ) { $sg = $set?'+':'-'; $cmd = 'STORE ' . $passed_id . ' ' . $sg . 'FLAGS ($MDNSent)'; - sqimap_mailbox_select($imapConnection, $mailbox); $read = sqimap_run_command ($imapConnection, $cmd, true, $response, $readmessage); } @@ -242,7 +241,7 @@ function ClearAttachments() { */ $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); -$read = sqimap_mailbox_select($imapConnection, $mailbox, false, true); +$read = sqimap_mailbox_select($imapConnection, $mailbox, false, false, true); do_hook('html_top'); @@ -254,7 +253,7 @@ if( $default_use_mdn && $supportMDN = ServerMDNSupport($read["PERMANENTFLAGS"]); $flags = sqimap_get_flags ($imapConnection, $passed_id); - $FirstTimeSee = !(in_array( '\\Seen', $flags )); + $FirstTimeSee = !(in_array( 'Seen', $flags )); } displayPageHeader($color, $mailbox); @@ -781,7 +780,7 @@ if ($default_use_mdn) { if ($mdn_user_support) { // debug gives you the capability to remove mdn-flags - $debug = false; + $MDNDebug = true; $read = sqimap_run_command ($imapConnection, "FETCH $passed_id BODY.PEEK[HEADER.FIELDS (Disposition-Notification-To)]", true, $response, $readmessage); $MDN_to = substr($read[1], strpos($read[1], ' ')); @@ -799,7 +798,7 @@ if ($default_use_mdn) { $sendreceipt = 'removeMDN'; $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\""; $sendreceipt=""; - if ($debug ) { + if ($MDNDebug ) { echo '' . "" . _("Read receipt") . ': ' . @@ -892,7 +891,7 @@ if ($default_use_mdn) { $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\""; $sendreceipt=""; - if ($debug && $supportMDN) { + if ($MDNDebug && $supportMDN) { echo " \n" . " \n" . " "._("Read receipt").": \n". -- 2.25.1