From b2c1976456feaa42eebe4a05b1f6b897b75bea84 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 29 May 2002 13:08:42 +0000 Subject: [PATCH] Fixed clearing MDN attachment. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2898 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/read_body.php b/src/read_body.php index cc76a830..6f059364 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -274,7 +274,7 @@ function ClearAttachments() { $rem_attachments = array(); foreach ($attachments as $info) { - if ($info->session == -1) { + if ($info['session'] == -1) { $attached_file = "$hashed_attachment_dir/$info[localfilename]"; if (file_exists($attached_file)) { unlink($attached_file); @@ -1019,6 +1019,7 @@ if ($default_use_mdn) { if ( SendMDN( $MDN_to, $final_recipient ) > 0 && $supportMDN ) { ToggleMDNflag( true); } + ClearAttachements(); } $sendreceipt = 'removeMDN'; $url = "\"read_body.php?mailbox=$mailbox&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more&sendreceipt=$sendreceipt\""; -- 2.25.1