[imp] Problem with email from Mailing List

Chuck Hagenbuch chuck at horde.org
Mon Jan 13 22:21:12 PST 2003


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> Check my commit - IMP_Headers::getValue() now tries to handle these
> situations more gracefully.

-            return $this->_headers[$header]['value'];
+            $single = array('to', 'from', 'cc', 'bcc', 'date', 'sender',
+                            'reply-to', 'message-id', 'in-reply-to',
+                            'references', 'subject');
+            if (is_array($this->_headers[$header]['value']) &&
+                in_array($header, $this->_headers[$header]['value'])) {
+                return $this->_headers[$header]['value'][0];

Shouldn't that be in_array($header, $single) ?

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the imp mailing list