Browse Source

fix for viewing attachments

stekkel 23 năm trước cách đây
mục cha
commit
78369fb933
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      class/mime.class.php

+ 3 - 2
class/mime.class.php

@@ -1,11 +1,12 @@
 <?php
 <?php
 
 
 /**
 /**
- * mime.class.php
+ * mime.class
  *
  *
  * Copyright (c) 2002 The SquirrelMail Project Team
  * Copyright (c) 2002 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  *
+ *
  * This contains functions needed to handle mime messages.
  * This contains functions needed to handle mime messages.
  *
  *
  * $Id$
  * $Id$
@@ -838,7 +839,7 @@ class message {
 	       }
 	       }
 	    }
 	    }
     	    if (!$exclude) {
     	    if (!$exclude) {
-	       if ($entity->type0 == 'multipart' && $entity->type1 == 'digest') {
+	       if ($entity->type0 == 'multipart' && !$entity->type1 == 'related') {
 	          $result = $entity->getAttachments($exclude_id, $result);
 	          $result = $entity->getAttachments($exclude_id, $result);
 	       } else if ($entity->type0 != 'multipart') {
 	       } else if ($entity->type0 != 'multipart') {
 	          $result[] = $entity;
 	          $result[] = $entity;