PHP Classes

Bug: Additional spaces

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Bug: Additional spaces  >  (Un) Subscribe thread alerts  
Subject:Bug: Additional spaces
Summary:Headers encoded according to RFC 2047 are wrongly decoded
Messages:4
Author:abc def
Date:2014-05-03 09:07:31
 

  1. Bug: Additional spaces   Reply   Report abuse  
Picture of abc def abc def - 2014-05-03 09:07:32
The header
Subject: =?iso-8859-1?Q?ThereShouldBeNoSp?=
=?iso-8859-1?Q?aceHere?=
(with a tab or space at the beginning of the 2nd line) must be decoded as "ThereShouldBeNoSpaceHere". However, the mime parser adds a space after the p.

After some research, I found the corresponding RFC 2047 which states
"When displaying a particular header field that contains multiple
'encoded-word's, any 'linear-white-space' that separates a pair of
adjacent 'encoded-word's is ignored."

  2. Re: Bug: Additional spaces   Reply   Report abuse  
Picture of abc def abc def - 2014-08-29 20:24:31 - In reply to message 1 from abc def
Manuel? You answered so quickly to the other threads, but not to this one.

  3. Re: Bug: Additional spaces   Reply   Report abuse  
Picture of abc def abc def - 2014-08-30 07:56:15 - In reply to message 2 from abc def
I now ignore DecodedHeaders and use PHP's imap_utf8 on Header, which works as expected.

  4. Re: Bug: Additional spaces   Reply   Report abuse  
Picture of ????? ?????? ????? ?????? - 2015-05-29 07:24:32 - In reply to message 1 from abc def
yes, i have a same problem too:

[subject:] => =?utf-8?B?0J/QvtC30LTRgNCw0LLQu9GP0LXQvCDRgSDQtNC90LXQvCDRgNC+0LbQtA==?= =?utf-8?B?0LXQvdC40Y8h?=