From 7622a2047e17749cd52a8e93f5ca9318e0897720 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 8 Mar 2002 21:44:37 +0000 Subject: [PATCH] bugfix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2560 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 0730b2aa..1e539585 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -34,18 +34,13 @@ if (!$domain) { /* Returns true only if this message is multipart */ function isMultipart ($session) { global $attachments; - return true; -/* - if (count($attachments)>0) { - for ($i=0 ; $i < count($attachments) ; $i++) { - if ($attachments[$i]->session == $session) { - return true; - } + + foreach ($attachments as $info) { + if ($info['session'] == $session) { + return true; } - } else { - return false; } -*/ + return false; } /* looks up aliases in the addressbook and expands them to @@ -200,24 +195,6 @@ function deleteAttachments($session) { $attachments = $rem_attachments; } - - - -// $hashed_attachment_dir = getHashedDir($username, $attachment_dir); -// if (isMultipart($ses)) { -// reset($attachments); -// while (list($localname, $remotename, $session) = each($attachments)) { -// if ($session == $ses) { -/// if (!ereg ("\\/", $localname)) { -// $filename = $hashed_attachment_dir . '/' . $localname; -// unlink ($filename); -// unlink ("$filename.info"); -// } -// } -// } -// } -//} - /* Return a nice MIME-boundary */ function mimeBoundary () { -- 2.25.1