[imp] Problem with email from Mailing List

Michael M Slusarz slusarz at bigworm.colorado.edu
Mon Jan 13 21:02:06 PST 2003


Quoting Chuck Hagenbuch <chuck at horde.org>:

| 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) ?

No.  And by no, I mean yes.  Fixed in HEAD.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list