Re: Re: imap_rfc822_parse_adrlist problem
| From: | Ben Stuyts | Date: | Sun, 21 Dec 2008 13:12:28 +0000 |
| Subject: | Re: Re: imap_rfc822_parse_adrlist problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284909@lists.php.net to get a copy of this message | ||
Hi,
On 21 dec 2008, at 03:41, Manuel Lemos wrote:
on 12/20/2008 09:34 PM Ben Stuyts said the following:Well, yeah, ok, I read about the problems imap_rfc822_parse_adrlist() has, but shouldn't it just work at least as advertized in the manual? Plus, this is breaking an existing application (Twiggi).Hi, Since upgrading to php 5.2.8 I have a problem with imap_rfc822_parse_adrlist. When I run the example given on the manual page at http://nl3.php.net/imap_rfc822_parse_adrlist: ... So the host part isn't filled in correctly. I have verified this on two FreeBSD 7 machines. On an older FreeBSD 5 machine with php4 this works fine. Before the update, I was running php 5.2.6 and there was no problem either. Any ideas?Sometime ago I decided to not use IMAP library functions to parse e-mail addresses because it was not handling all sorts of addresses as it should.
Nowadays I use an e-mail address parser class written in pure PHP that comes with this MIME parser class: http://www.phpclasses.org/mimeparserThanks, I'll have a look at that. Ben