Subject doesn't have comments
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 15:14:12 +0000 (15:14 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 15:14:12 +0000 (15:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3413 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class.php

index 627f345..df8e0a7 100644 (file)
@@ -60,7 +60,8 @@ class rfc822_header
             {
                 $field = substr($line,0,$pos);
                 $value = trim(substr($line,$pos+1));
-                if(!preg_match('/^X.*/i',$field)) {
+                if(!preg_match('/^X.*/i',$field) &&
+                   !preg_match('/^Subject/i', $field)) {
                     $value = $this->stripComments($value);
                 }
                 $this->parseField($field,$value);
@@ -114,7 +115,7 @@ class rfc822_header
           $i++;    
        }
         return $s;
-    }     
+    }
     
     function parseField($field,$value)
     {
@@ -1747,4 +1748,4 @@ class content_type
     }
 }
 
-?>
\ No newline at end of file
+?>