dasararajesh / php-mime-mail-parser

Automatically exported from code.google.com/p/php-mime-mail-parser
0 stars 0 forks source link

Message Body Headers are not accessible. And message body is always assumed to be 7bit encoded. #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parsing an email where the message body has content-transfer-encoding =
quoted-printable. The body is not decoded.

What is the expected output? What do you see instead?
The most common character that is encoded with quoted-printable is the
newline character. It appears as '=20' in a quoted-printable encoded body
part. I would not expect to see this entity when echoing the message body part.

What version of the product are you using? On what operating system?
Latest on trunk. (R14)

Please provide any additional information below.

I have attaced a patch for this issue. The patch automatically decodes the
message body part depending on its encoding type. I have also provided a
public function to retrieve the message body headers.

Original issue reported on code.google.com by datafusi...@gmail.com on 15 Oct 2009 at 12:13

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch. I've applied it to the trunk.

Original comment by buca...@gmail.com on 15 Oct 2009 at 2:55

GoogleCodeExporter commented 9 years ago
Previous Patch introduced a bug. Please use this one.

<code>
-                    $headers = $this->getPartHeaders($type);
+                    $headers = $this->getPartHeaders($part);
</code>

Original comment by datafusi...@gmail.com on 3 Nov 2009 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
Looks like Coment 2 patch has not yet been added to trunk.

Original comment by ks2...@gmail.com on 16 Apr 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Patch now added to trunk. 

Original comment by buca...@gmail.com on 19 Apr 2010 at 4:43