FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17862&edit=1

ID: 17862
Updated by: ben.vaughn@united.com
Reported By: ben dot vaughn at united dot com
Summary: preg_split boundary error on MTA returns
Status: Open
Type: Bug
Package: Mail_mimeDecode
Operating System: RHEL 5.5 x86_64
Package Version: 1.5.3
PHP Version: 5.1.6
Roadmap Versions:
New Comment:

Here's a proof...you can pass this through mimeDecode and it will
generate the error mentioned in the bug report.

From MAILER-DAEMON Sun Nov 8 00:36:32 2009
Return-Path: <>
X-Original-To: receive@archive.test.com
Delivered-To: receive@archive.test.com
Received: from D1GW1.D1.email-services-provider.net (unknown
[10.116.209.31])
by mail-archive.test.com (Postfix) with ESMTP id 93266209954E1
for <receive@archive.test.com>; Sun, 8 Nov 2009 00:36:32 -0600 (CST)
Received: from D1GW1.D1.email-services-provider.net ([10.116.209.31]) by
D1GW1.D1.email-services-provider.net with Microsoft
SMTPSVC(6.0.3790.3959);
Sat, 7 Nov 2009 23:36:32 -0700
Received: from gwsin01.mbox.com ([10.188.64.13]) by
D1GW1.D1.email-services-provider.net with Microsoft
SMTPSVC(6.0.3790.3959);
Sat, 7 Nov 2009 23:36:31 -0700
Received: from gwsin01.mbox.com (gwsin.mbox.com [10.188.65.100])
by gwsin01.mbox.com (Postfix) with ESMTP id 324004E811A
for <cindy.terptuttle@test.com>; Sun, 8 Nov 2009 06:36:32 +0000 (GMT)
X--Received: from gwsfilter04.mbox.com [10.188.64.63] by
gwsin01.mbox.com via mtad (C8.MAIN.3.53P)
with ESMTP id 642NkHgKf4560Ms1; Sun, 08 Nov 2009 06:36:31 -0000
Received: from gwsfilter04.mbox.com (gwsfilter04-lo [127.0.0.1])
by localhost (Postfix) with SMTP id 69C1D200005
for <cindy.terptuttle@test.com>; Sun, 8 Nov 2009 06:36:31 +0000 (GMT)
Received: from gwsin02.mbox.com (gwsin02.mbox.com [10.188.64.14])
by gwsfilter04.mbox.com (Postfix) with ESMTP id 52108200004
for <cindy.terptuttle@test.com>; Sun, 8 Nov 2009 06:36:31 +0000 (GMT)
X--Received: from esmail01.eservices.email-services-provider.net
[10.188.64.8] by gwsin02.mbox.com via mtad (C8.MAIN.3.53P)
with ESMTP id 739NkHgKd9440Ms2; Sun, 08 Nov 2009 06:36:29 -0000
X--Routed: 1 gwsin-bmdelete Q:bmdelete
X--Routed: 4 gwsin-sophos R:sophos:625
X--Routed: 100 IN-RELAY R:gwsin:800
Received: from gateout02.mbox.com [10.188.64.22] by
esmail01.eservices.email-services-provider.net via smtad (C8.MAIN.3.58V)

with ESMTPS id XID086NkHgKd3192Xd1; Sun, 08 Nov 2009 06:36:29 -0000
X--Source: 10.188.64.22 IN <> gateout02.mbox.com
X--MsgId: XID086NkHgKd3192Xd1
Received: by gateout02.mbox.com (Postfix)
id AC3BA4BC46A; Sun, 8 Nov 2009 06:36:29 +0000 (GMT)
Date: Sun, 8 Nov 2009 06:36:29 +0000 (GMT)
From: MAILER-DAEMON@gateout02.mbox.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: Cindy.terptuttle@test.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="425B94BC3EB.1257662189/gateout02.mbox.com"
Message-Id: <20091108063629.AC3BA4BC46A@gateout02.mbox.com>
X-PMX-Version: 5.5.8.383112
X--SOPHOS: Complete
X-OriginalArrivalTime: 08 Nov 2009 06:36:32.0012 (UTC)
FILETIME=[CF446CC0:01CA603D]

This is a MIME-encapsulated message.

--425B94BC3EB.1257662189/gateout02.mbox.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host gateout02.mbox.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<lifesource@membersforlife.org>: connect to
mail4.membersforlife.org[70.151.121.234]: Connection timed out

--425B94BC3EB.1257662189/gateout02.mbox.com
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; gateout02.mbox.com
X-Postfix-Queue-ID: 425B94BC3EB
X-Postfix-Sender: rfc822; Cindy.terptuttle@test.com
Arrival-Date: Thu, 5 Nov 2009 06:33:56 +0000 (GMT)

Final-Recipient: rfc822; lifesource@membersforlife.org
Original-Recipient: rfc822;lifesource@membersforlife.org
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
mail4.membersforlife.org[70.151.121.234]: Connection timed out

--425B94BC3EB.1257662189/gateout02.mbox.com
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: from gwsin01.mbox.com (gwsin01.mbox.com [10.188.64.13])
by gateout02.mbox.com (Postfix) with ESMTP id 425B94BC3EB
for <lifesource@membersforlife.org>; Thu, 5 Nov 2009 06:33:56 +0000
(GMT)
X--Received: from gwsfilter05.mbox.com [10.188.64.64] by
gwsin01.mbox.com via mtad (C8.MAIN.3.53P)
with ESMTP id 150Nkegh38960Ms1; Thu, 05 Nov 2009 06:33:54 -0000
Received: from gwsfilter05.mbox.com (gwsfilter05-lo [127.0.0.1])
by localhost (Postfix) with SMTP id AD851637D31
for <lifesource@membersforlife.org>; Thu, 5 Nov 2009 06:33:54 +0000
(GMT)
Received: from gateout02.mbox.com (gateout02.mbox.com [10.188.64.22])
by gwsfilter05.mbox.com (Postfix) with ESMTP id 9D8FB634CFF
for <lifesource@membersforlife.org>; Thu, 5 Nov 2009 06:33:54 +0000
(GMT)
X--Received: from gateout02.mbox.com [127.0.0.1] by gateout02.mbox.com
via mtad (C8.MAIN.3.53P)
with ESMTP id 944Nkegh17424Mo2; Thu, 05 Nov 2009 06:33:52 -0000
X--Received: from gateout02.mbox.com [127.0.0.1] by gateout02.mbox.com
via mtad (C8.MAIN.3.53P)
with ESMTP id 940Nkeghz7024Mo2; Thu, 05 Nov 2009 06:33:51 -0000
X--Routed: 20 gwsout-sophos R:sophos:625
X--Routed: 10 gwsout-ualsc C:localhost:625 receive@archive.test.com
X--Routed: 3 gwsout-vs R:localhost:1825
Received: from D1GW2.D1.email-services-provider.net [10.188.116.254] by
gateout02.mbox.com via smtad (C8.MAIN.3.58V)
with ESMTP id XID498Nkeghz2158Xo2; Thu, 05 Nov 2009 06:33:51 -0000
X--Source: 10.188.116.254 IN Cindy.terptuttle@test.com
D1GW2.D1.email-services-provider.net
X--MsgId: XID498Nkeghz2158Xo2
Received: from D1VS3.D1.email-services-provider.net ([10.116.209.131])
by D1GW2.D1.email-services-provider.net with Microsoft
SMTPSVC(6.0.3790.3959);
Wed, 4 Nov 2009 23:33:51 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Out of Office AutoReply: Welcome to an improved donor
experience!
Date: Wed, 4 Nov 2009 23:33:51 -0700
Message-ID:
<D5C405533662D940AA604BF2A9F7602202736941@D1VS3.D1.email-services-provider.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Welcome to an improved donor experience!
Thread-Index: Acpd4e/Ft2FzYBXKQSantoSDfGyF0gAAABfQ
From: "terptuttle, Cindy [WHQPW]" <Cindy.terptuttle@test.com>
To: "LifeSource" <LifeSource@membersforlife.org>
X-OriginalArrivalTime: 05 Nov 2009 06:33:51.0470 (UTC)
FILETIME=[F05668E0:01CA5DE1]
X--SOPHOS: Complete

I am out of the office on business on Thursday Nov 5, with limited =
access to email. in my absence if you need immediate attention please =
contact Helen Kaksitsas at 212.331-2698.
Thanks,
Cindy terptuttle




--425B94BC3EB.1257662189/gateout02.mbox.com--


Previous Comments:
------------------------------------------------------------------------

[2010-09-13 18:12:59] bivaughn

Description:
------------
I maintain a large archive of mail for legal compliance at my company,
and use mimeDecode to make messages readable for attorneys. I noticed
after updating to 1.5.3 that some messages bounced from MTA's (Out of
Office Autoreplies, Unknown sender returns, etc) trigger the following
error from mimeDecode:

[13-Sep-2010 13:03:15] PHP Warning: preg_split(): Unknown modifier 'g'
in /usr/share/pear/Mail/mimeDecode.php on line 661

The boundary in the messages looks like this:

Content-Type: multipart/report; report-type=delivery-status;
boundary="425B94BC3EB.1257662189/gateout02.mbox.net"

So I am guessing the split is confused about the forward-slash.

I've included the message (with some recipient details masked) in this
bug report.

Thanks

------------------------------------------------------------------------

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 13, '10 at 6:16p
activeSep 13, '10 at 11:59p
posts2
users2
websitepear.php.net

2 users in discussion

Ben Vaughn: 1 post Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase