PHP Classes

"Lastname, Firstname" <[email protected]>

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  "Lastname, Firstname" <[email protected]>  >  (Un) Subscribe thread alerts  
Subject:"Lastname, Firstname" <[email protected]>
Summary:Bug in address parsing?
Messages:3
Author:abc def
Date:2015-08-10 18:37:39
 

  1. "Lastname, Firstname" <[email protected]>   Reply   Report abuse  
Picture of abc def abc def - 2015-08-10 18:37:39
I came across an e-mail with the header
From: "Lastname, Firstname" <[email protected]>

This is parsed into two addresses.

It seems your code divides the line at the comma, although the comma is in the quoted part.

Can you reproduce that?

  2. Re: "Lastname, Firstname" <[email protected]>   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-08-12 01:02:40 - In reply to message 1 from abc def
I tried that header value with the test_parse_addresses.php scripts and it works correctly.

Does it work for you with that script?

What PHP version are you using?

  3. Re: "Lastname, Firstname" <[email protected]>   Reply   Report abuse  
Picture of abc def abc def - 2015-08-13 20:31:00 - In reply to message 2 from Manuel Lemos
Okay, with test_parse_addresses.php, it worked for me as well. After some debugging, it turns out that the error was completely on my side. Sorry.