PHP Classes

Problem with mime parsing

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Problem with mime parsing  >  (Un) Subscribe thread alerts  
Subject:Problem with mime parsing
Summary:Problem with mime parsing, found a utf8 message i cannot parse
Messages:2
Author:Michael Holm
Date:2012-08-22 11:52:28
Update:2012-08-24 03:45:40
 

  1. Problem with mime parsing   Reply   Report abuse  
Picture of Michael Holm Michael Holm - 2012-08-22 11:52:28
Hi,

I have tested your class with both, utf8 messages and iso88591 subjects, and it seems to work almost perfect.. but i cannot find out the problem here, i have a sample message that remove a whitespace, all other mail clients i have tested parse the message fine, so :/ i cannot tell if its a mall formed format, or there is a bug somewhere.. hope you can help me out.

The problem is the subject, it end up as:

Velkommen påVoresSide

instead of:

Velkommen på VoresSide

Here is the top of the message:


Return-Path: <[email protected]>
Received: from example.dk (example.dk [127.0.0.1])
by example.dk (Postfix) with ESMTP id D293C16D80DB
for <[email protected]>; Wed, 22 Aug 2012 11:59:09 +0200 (CEST)
Message-ID: <[email protected]>
Date: Wed, 22 Aug 2012 11:59:09 +0200
Subject: Velkommen =?utf-8?Q?p=C3=A5?= VoresSide
From: "Meh.dk" <[email protected]>
To: jagsduyasgd 7 <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="_=_swift_v4_13456295495034ad6dcc573_=_"
X-TEST-RETURNPATH: [email protected]
X-TEST-TYPE: welcome


--_=_swift_v4_13456295495034ad6dcc573_=_
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hej jagsduyasgd 7,

  2. Re: Problem with mime parsing   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-08-24 03:45:40 - In reply to message 1 from Michael Holm
Yes, there was a bug that was making the class eliminate multiple white space between words.

The problem is fixed and a new version was uploaded. Just let me know if you find other problems. Thank you for reporting.