fix for viewing attachments
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 25 Jul 2002 19:34:49 +0000 (19:34 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 25 Jul 2002 19:34:49 +0000 (19:34 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3138 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

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