php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16824 mailparse functions. multipart/related type of messages
Submitted: 2002-04-25 09:52 UTC Modified: 2007-04-04 18:29 UTC
From: chaitanyajakhadi at yahoo dot com Assigned: wez (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 4.1.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chaitanyajakhadi at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-04-25 09:52 UTC] chaitanyajakhadi at yahoo dot com
Hi,
 Mailparse function does not parse multipart/related type of messages properly. It considers whole message as text/html. Headers of message is as follows


Date: Tue, 12 Feb 2002 01:50:16 +0530
From: =?utf-8?Q?MSN Staff?= <msn_welcome@msn.com>
Subject: =?utf-8?Q?Welcome to MSN?=
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_00_0017_01C091F4.1B5EF6B0";
	type="text/html"

This is a multi-part message in MIME format.

------=_NextPart_00_0017_01C091F4.1B5EF6B0
Content-Type: text/html;
	charset="utf-8"

<html>
<head>
<title class="clsGreeting">Welcome to MSN</title>
</head>
<body>

<style type="text/css">
    .
    .
    .
    .  

   Due to type=text/html parameter to Content-Type: multipart/related; it is giving problem

Regards,
Chaitanya
=========


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-25 13:13 UTC] wez@php.net
It works for me.
The headers you included look like bogus headers to me,
so I suspect that is the problem.
Could you forward the entire message to me by private email? Send it to wez@php.net.
Please make sure that you have read and understood the relevant rfcs about MIME and multipart messages (start with rfc2045). mailparse just allows you to take the message apart - it doesn't do any fancy stuff with multpart/related on it's own, you need to code that logic.
 [2002-04-25 13:42 UTC] wez@php.net
Sorry, there is a problem: I didn't read your report properly.
The fix will not appear in 4.2 or 4.2.1 because mailparse
has been moved into PECL, which means that you will need to download it separately from the main distribution.
When I've corrected the problem I will upload a revised tarball for PHP 4.2.x and let you know where to get it.
 [2002-08-10 17:59 UTC] wez@php.net
It's been a while since I've done anything for mailparse;
I can't remember if I have fixed it or not :-/

Could you try the tarball from:
http://thebrainroom.co.uk/opensource/php/mailparse-4.2.0.tgz
and confirm if it still has the problem you described?
 [2002-09-11 10:55 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2004-03-07 09:02 UTC] wez@php.net
This was fixed a while ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 01:01:31 2024 UTC