stekkel 23 years ago
parent
commit
28578cd771
1 changed files with 5 additions and 28 deletions
  1. 5 28
      functions/smtp.php

+ 5 - 28
functions/smtp.php

@@ -34,18 +34,13 @@ if (!$domain) {
 /* Returns true only if this message is multipart */
 /* Returns true only if this message is multipart */
 function isMultipart ($session) {
 function isMultipart ($session) {
     global $attachments;
     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
 /* looks up aliases in the addressbook and expands them to
@@ -200,24 +195,6 @@ function deleteAttachments($session) {
     $attachments = $rem_attachments;
     $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
 /* Return a nice MIME-boundary
  */
  */
 function mimeBoundary () {
 function mimeBoundary () {