[dev] entourage bug

KaalH! kaalh@smol.org
Fri, 24 May 2002 11:37:56 +0200


entourage (the M$ mac mail client ) doesn't set the filename parameter for 
attachments.


Index: Structure.php
===================================================================
RCS file: /repository/horde/lib/MIME/Structure.php,v
retrieving revision 1.28
diff -u -r1.28 Structure.php
--- Structure.php       20 May 2002 05:02:41 -0000      1.28
+++ Structure.php       24 May 2002 09:33:56 -0000
@@ -205,7 +205,10 @@
                 $object->setName($object->getParameter('filename'));
             } elseif ($object->getDispositionParameter('filename')) {
                 $object->setName($object->getDispositionParameter
('filename'));
-            }
+            } elseif ($object->getParameter('name')) {
+               /* Some buggy clients ( entourage ) only set the 'name' 
parameter */
+                $object->setName($object->getParameter('name'));
+           }
         }
 
         // Make sure there's a description


-- 
KaalH!