PHP Classes

MIME parser

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  MIME parser  >  (Un) Subscribe thread alerts  
Subject:MIME parser
Summary:Fails to decode Q-coded string with \\ (backslash)
Messages:2
Author:danilcha
Date:2011-10-28 11:04:10
Update:2011-10-29 03:26:59
 

  1. MIME parser   Reply   Report abuse  
Picture of danilcha danilcha - 2011-10-28 11:04:12
Hi,

I got a message with Header:

From: =?windows-1257?Q?Renata_Tverkien=EB_\\_National_Hotel?= <[email protected]>

Apple Mail reads this header as

Renata Tverkien&#279; \ National Hotel <[email protected]>

While the MIME E-mail parser seems to fail to parse it and returns the raw header.

  2. Re: MIME parser   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-10-29 03:26:59 - In reply to message 1 from danilcha
According to RFC 2822 escaped characters (\CHAR) can only appear in phrases that are quoted, which is not the case.

I may see what I can do to tolerate cases like this but still it is a syntax error.