From 0892e4271016ffd6ccae6e1a14fb8463b7b90634 Mon Sep 17 00:00:00 2001 From: ullgren Date: Wed, 13 Feb 2002 19:58:13 +0000 Subject: [PATCH] sqimap_messages_flag and sqimap_messages_remove_flag prepends a '\' char to the supplied flag but the $MDNSent flag should not be prefixed by '\' git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2437 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 8b833313..0cc85a0a 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -207,11 +207,12 @@ function SendMDN ( $recipient , $sender) { function ToggleMDNflag ( $set ) { global $imapConnection, $passed_id, $mailbox; sqimap_mailbox_select($imapConnection, $mailbox); - if ( $set ) { - sqimap_messages_flag ($imapConnection,$passed_id,$passed_id,"\$MDNSent"); - } else { - sqimap_messages_remove_flag ($imapConnection,$passed_id,$passed_id,"\$MDNSent"); - } + + $sg = $set?'+':'-'; + $cmd = 'STORE ' . $passed_id . ' ' . $sg . 'FLAGS ($MDNSent)'; + sqimap_mailbox_select($imapConnection, $mailbox); + $read = sqimap_run_command ($imapConnection, $cmd, true, $response, + $readmessage); } function ClearAttachments() { -- 2.25.1