fix parsing group related address headers.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 27 Sep 2002 17:24:56 +0000 (17:24 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 27 Sep 2002 17:24:56 +0000 (17:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3746 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Rfc822Header.class.php

index 8a3e6b2..a744b91 100644 (file)
@@ -305,7 +305,11 @@ class Rfc822Header {
             $name = "$group";
             $addr_structure->personal = $name;
             $addr_ar[] = $addr_structure;
-            return (array($addr_ar, $pos+1));
+            return (array($addr_ar,$pos+1 ));
+       } elseif ($group) {
+            $addr_structure->personal = $name;
+            $addr_ar[] = $addr_structure;
+           return (array($addr_ar,$pos+1 ));
         } else {
             $addr_structure->personal = $name;
             if ($name || $addr) {