php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57383 mailparse_msg_parse_file return null
Submitted: 2006-11-17 05:17 UTC Modified: 2008-03-23 21:58 UTC
From: ivorobeova at ncc dot nnov dot ru Assigned:
Status: No Feedback Package: mailparse (PECL)
PHP Version: 4.4.4 OS: RedHat
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
11 + 4 = ?
Subscribe to this entry?

 
 [2006-11-17 05:17 UTC] ivorobeova at ncc dot nnov dot ru
Description:
------------
mailparse_msg_parse_file return null

Reproduce code:
---------------
$mime = mailparse_msg_parse_file($filename_full);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-17 05:20 UTC] ivorobeova at ncc dot nnov dot ru
-
 [2006-11-17 05:23 UTC] ivorobeova at ncc dot nnov dot ru
$mime = mailparse_msg_parse_file($filename_full);

$filename_full consists:
--------------
Return-Path: <78319040071@mobilemail.ru>
Received: from [195.98.63.111] (HELO vsb.ncc.nnov.ru)
  by ncc.nnov.ru (CommuniGate Pro SMTP 4.2.6)
  with ESMTP id 7287218 for ivorobeova@ncc.nnov.ru; Fri, 17 Nov 2006 11:00:20 +0300
Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1])
        by vsb.ncc.nnov.ru (8.13.7/8.13.7) with SMTP id kAH80Ki9000982
        for ivorobeova@ncc.nnov.ru; Fri, 17 Nov 2006 11:00:20 +0300
Date: Fri, 17 Nov 2006 11:00:20 +0300
Message-Id: <200611170800.kAH80Ki9000982@vsb.ncc.nnov.ru>
Subject: test
From: 78319040071@mobilemail.ru
To: ivorobeova@ncc.nnov.ru
X-Sender: 78319040071@mobilemail.ru
Errors-To: 78319040071@mobilemail.ru
X-Mailer: vsb_iserve_mailer 1.0
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Attachment Mailer ver. 1.0
X-Priority: 3
Content-Type: multipart/mixed;
         boundary="_50d5bf5768536d2cb66c3a9916ff3e0c"
X-Virus-Scanned: ClamAV 0.88/1520/Thu Jun  8 01:47:18 2006, clamav-milter version 0.75c
        on localhost
X-Virus-Status: Clean
X-Spam-Status: No, score=-99.9 required=7.0 tests=ALL_TRUSTED,AWL,BAYES_00,
        DOMAIN_RATIO,FROM_ALL_NUMS,FROM_STARTS_WITH_NUMS,NO_REAL_NAME,
        USER_IN_WHITELIST autolearn=no version=3.0.4
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on vsb.ncc.nnov.ru
X-Miltered: at vsb with ID 455D6C14.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)!

--_50d5bf5768536d2cb66c3a9916ff3e0c
Content-type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

testtest
--- www.mobilemail.ru ---

 
--_50d5bf5768536d2cb66c3a9916ff3e0c--
 [2007-11-25 23:49 UTC] shire@php.net
I'm unable to reproduce this with the latest release.  Can you confirm if this is fixed for you with the latest release?

#cat x.php
<? var_dump(mailparse_msg_parse_file('mail.txt')); ?>
#php x.php
resource(5) of type (mailparse_mail_structure)
 [2008-03-23 21:58 UTC] shire@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 10:01:30 2024 UTC