JotaGil / CustomMimeMailParse

This is a customized MIME Mail Parser using PHP's MailParse extension. Based on the original project php-mime-mail-parser (http://code.google.com/p/php-mime-mail-parser/)
GNU General Public License v2.0
0 stars 0 forks source link

Not parsing this email #1

Closed sniemetz closed 11 years ago

sniemetz commented 11 years ago

Hi thanks for the great work.

The email below is parsed with only one part, no HTML/text parts.

Looks like the pecl parser is having issues.

Can you help me find out how I need to modify the incoming email so it parses?

From bounce-450_HTML-114564821-312680-7000715-13067@bounce.email.gap.com  Sun Aug 11 15:40:44 2013
Return-Path: <bounce-450_HTML-114564821-312680-7000715-13067@bounce.email.gap.com>
X-Original-To: b525262b8b69f7e9723c8ade6e89f175@snappomatic.com
Delivered-To: b525262b8b69f7e9723c8ade6e89f175@snappomatic.com
Received: from mta12.email.gap.com (mta12.email.gap.com [199.122.123.134])
by snappomatic.com (Postfix) with ESMTP id 077B7422CB
for <b525262b8b69f7e9723c8ade6e89f175@snappomatic.com>; Sun, 11 Aug 2013 15:40:44 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=200608; d=email.gap.com;
h=From:To:Subject:Date:List-Unsubscribe:MIME-Version:Reply-To:Message-ID:Content-Type; i=gap@email.gap.com;
bh=VMq9JSoWk5u8OYtRv03+c2KqkZs=;
b=W/MiZRV78OAc4awpNTM2YBhpfFBTGe6jSecgV1qxqEjwnwmqMaXc5NSSti9E9mECN7lEsNnPsaG6
Gs60DLEmNRa+1qnrbQCPQqBvCTkrPfsZ/H2b1NJ2LrBQuMFspK5cv1BD0Lcn0uKnAIZS/SBgFJtj
B2XmiXrZ4zEp9Lqxgfg=
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=200608; d=email.gap.com;
b=arEixI7qro7UBeu/x3wxd2DsUaSiEZPvb10jdsEIyk3X0wQdSi9Zku7sT5FhYSBdCL2pL2/MHzno
STbUh7+A7EBmSXfDj/Rgc33R2F0WBzXeMzL7IgXw9kN4ROsEC7Mh65jtQfhxBkijnXzf/fUZFvEl
CJdRTtUCy7QJTYfMCWk=;
Received: by mta12.email.gap.com id h0uo8e163hso for <b525262b8b69f7e9723c8ade6e89f175@snappomatic.com>; Sun, 11 Aug 2013 09:40:54 -0600 (envelope-from <bounce-450_HTML-114564821-312680-7000715-13067@bounce.email.gap.com>)
From: "Gap" <gap@email.gap.com>
To: <b525262b8b69f7e9723c8ade6e89f175@snappomatic.com>
Subject: Final hours to shop the GAP FRIENDS EVENT!
Date: Sun, 11 Aug 2013 09:40:51 -0600
List-Unsubscribe: <mailto:leave-fd521075750b5c392848-fe2f1571716102797d1671-fecb177177620c7d-fe9b13707564037c70-fefe1573756203@leave.email.gap.com>
MIME-Version: 1.0
Reply-To: "Gap" <reply-fecb177177620c7d-450_HTML-114564821-7000715-13067@email.gap.com>
x-job: 7000715_312680
Message-ID: <dd0c7e0c-6a71-4ec9-8c32-9bff67477357@xtinp2mta410.xt.local>
Content-Type: multipart/alternative;
boundary="jzixueVetTTE=_?:"

This is a multi-part message in MIME format.

--jzixueVetTTE=_?:
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: 8bit

GAP
http://click.email.gap.com/?qs=4d634f679d740ecf17880aaaf6bce8eee4b92233c6371e9b0b9a01c8c7206059673778a8a087a401

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

Click below to view this message from Gap in a web browser:
http://click.email.gap.com/?qs=4d634f679d740ecfdcdcec517ed5343ae85eea00969e59d68e67d9a437d1b972b6243795f362d468

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

Privacy Policy:
http://click.email.gap.com/?qs=4d634f679d740ecfa0a502f2252a48323cba4443ee3cf9cc12564dde49bac6be566bf2cc68696516

Unsubscribe:
http://click.email.gap.com/?qs=4d634f679d740ecffe6bdd56eaf4bfdc6511aa5a467230e8d38f7dbe38319b580946c8192c05334e

Customer Services, 100 Gap Online Drive, Grove City, OH 43123-8605.

--jzixueVetTTE=_?:
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: 8bit

<html>
<head>
<title>Final hours to shop the GAP FRIENDS EVENT!</title>
<style type="text/css">
.ReadMsgBody{width:100%;}
.ExternalClass{width:100%;}
.ExternalClass{line-height:100%;}
table td {border-collapse: collapse;}
</style>
</head>
<body style="-webkit-text-size-adjust: none; margin: 0px; padding: 0px; -ms-text-size-adjust:none;">
<img src="http://click.email.gap.com/open.aspx?ffcb10-fecb177177620c7d-fe3915717764017e741578-fe9b13707564037c70-ff66107575-fe2f1571716102797d1671-fefe1573756203" width="1" height="1">

<table width="828" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><!-- 20130514_GPUS_Header -->
<!-- Begin Preheader + Nav Bar -->
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center">
<tr>
<td align="left" style="font-family:Arial,Helvetica,sans-serif; font-size:12px; line-height:15px; color:#666666; padding-top:15px; padding-bottom:36px;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfdffc8ac28aafad5fe339e990a32213391c1d84995757832e123bc7882025584460e36d502b932736" target="_blank" style="color:#0033FF; text-decoration:underline;" ><span style="color:#0033FF;">The Gap FRIENDS Event ends today, 8/11. Online: 35% off. In stores: 30% off.</span></a>
<span style="font-size:10px; line-height:13px;"> Can't see images? <a href="http://click.email.gap.com/?qs=4d634f679d740ecfc182eb4077b4b814c63c9ae8ddf4e4b9d7a5922d863fc5de7a525b58444a5c85" target="_blank" style="color:#0033FF; text-decoration:underline;" ><span style="color:#0033FF;">Click here</span></a>.</span></td>
</tr>
<tr>
<td align="left" width="828" height="130">
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center">
<tr>
<td width="828" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center">
<tr>
<td width="76" height="76" valign="top" style="mso-line-height-rule:exactly;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecfbc0f297602097b86a2d00fb717185d028d078232dc406bd9fb8ddbe2c5b1c9b7a858ec98635f71fe" target="_blank" ><img alt="GAP" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_03.jpg" width="76" height="76" border="0" style="display:block; font-family:Arial,Helvetica,sans-serif; font-size:10px; color:#000000;" /></a></td>
<td width="462" height="76" valign="top" style="mso-line-height-rule:exactly;"><img alt="" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/3/GPUS_Header_Spacer.gif" border="0" style="display:block; font-family:Arial,Helvetica,sans-serif; font-size:10px; color:#000000;" />
</td>
<td width="290" height="76" style="mso-line-height-rule:exactly;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecfe159324f2c951063210fc013cf0e8d6b9490c28060c3a4d7ffed4f3f910de9150de523710998e9c2" target="_blank" ><img alt="FREE SHIPPING ON ANY ORDERS OVER $50. FREE RETURNS ON ALL ORDERS." src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav2_03.jpg" width="290" height="76" border="0" style="display:block; font-family:Arial,Helvetica,sans-serif; font-size:10px; color:#000000;" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="828" height="54" align="center">
<tr>
<td width="66" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecff21bbdeac48c29f5975da7cb6999ee87d64f404d63a0864fa89d86890953c5c8587f0fd572dd505f" target="_blank" ><img style="display:block;" alt="WOMEN" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_05.jpg" width="66" height="54" border="0" /></a></td>
<td width="66" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfe534826430ac1ed9146848b633647c41a00b6e1ad47e2f35c1880c18952816e12c4a2a2575c88142" target="_blank" ><img style="display:block;" alt="BODY" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_06.jpg" width="66" height="54" border="0" /></a></td>
<td width="76" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf326ff6f04faa32d7824da10c46307c090147fe5aa186246d9b2961f546a461242ca0540bbd0536f2" target="_blank" ><img style="display:block;" alt="GAPFIT" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_07.jpg" width="76" height="54" border="0" /></a></td>
<td width="108" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfbf30eab653744b0af9da7514f70332e905a529a479f4bed5180c3f181dde223a9c09a2479e47b489" target="_blank" ><img style="display:block;" alt="MATERNITY" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_08.jpg" width="108" height="54" border="0" /></a></td>
<td width="58" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecff400352c6014657098ef4820168d771c99902019cc94f7a80cca29e02df6b8566a212aa413b0f795" target="_blank" ><img style="display:block;" alt="MEN" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_09.jpg" width="58" height="54" border="0" /></a></td>
<td width="68" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfd54a87c978b27b130e14429dfc31821575d596ae50c425c792adc369781a854ee5f9e2b3abd8799e" target="_blank" ><img style="display:block;" alt="GIRLS" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_10.jpg" width="68" height="54" border="0" /></a></td>
<td width="65" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfe75638097384c22da8ec1be3c0dbf479fc0e784b9d25ac3e0927d8e04abcba5637d7a488ba08768f" target="_blank" ><img style="display:block;" alt="BOYS" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_11.jpg" width="65" height="54" border="0" /></a></td>
<td width="133" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf9eea869d251e5abd15d81203c10eff18feb420e638035d62a82890f43f8f88d3261dd44b5dab950e" target="_blank" ><img style="display:block;" alt="TODDLER GIRL" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_12.jpg" width="133" height="54" border="0" /></a></td>
<td width="129" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf7783e92dc38019ac40ad2a881bf2de2c8c5780d196ddea39c719b509a7057c7be94ed8550ab61947" target="_blank" ><img style="display:block;" alt="TODDLER BOY" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_13.jpg" width="129" height="54" border="0" /></a></td>
<td width="59" height="54" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfd47b1d027f70d094581376835f3309462d631d746f1d561877c82d4abab5c936ab0c04945239287f" target="_blank" ><img style="display:block;" alt="BABY" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_Summer-Top-Nav_US_14.jpg" width="59" height="54" border="0" /></a></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<!-- End Preheader + Nav Bar -->
<!-- Begin Top Banner -->

<!-- End Top Banner --></td>
</tr>
</table>
<table width="828" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="374" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfa716d9d3e2151f1117b2c6363f327e90924b0e0d7cfbca3087c816e7d7e5e9b24fa210e1c85436dd"  target="_blank"><img style="display:block;" alt="IN STORES & ONLINE | FINAL HOURS! | THE GAP FRIENDS EVENT | ONLINE 35% OFF YOUR PURCHASE | IN STORES 30% OFF YOUR PURCHASE | ENDS TODAY 8/11." border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/081113_FriendsEvent_03.jpg" width="374" height="583"></a></td>
</tr>
<tr>
<td><table width="374" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="114" style="font-size:0px; mso-line-height-rule:exactly; line-height:0px;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecf8844744a9aeda351cb1a0ede32e3a8fb6cd377928fadc2af5cc3630efdba4871a329875c3e03248d"  target="_blank"><img style="display:block;" alt="ENTER" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/0811_FF_AllDiv_LC_2.jpg" width="114" height="14"></a></td>
<td width="91" height="14" align="center" bgcolor="#ccffff" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#0099cc; font-weight:bold;">GAPFRIENDS</td>
<td width="170" style="font-size:0px; mso-line-height-rule:exactly; line-height:0px;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecf0afdfae76b44b2a0185f6e361720bba5a5c3d3da704dd889c7e3cefbe0ac49ed9352cacb60e12e96"  target="_blank"><img style="display:block;" alt="AT CHECKOUT." border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/0811_FF_AllDiv_LC_3.jpg" width="170" height="14"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfbdba8a771183c4fa45ad32b15cc10bd5b44a1dbfdbd4650615478bfdc960f298fd0727c722b50078"  target="_blank"><img style="display:block;" alt="DISCOUNT TAKEN AT REGISTER IN STORES." border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/081113_FriendsEvent_06.jpg" width="374" height="48"></a></td>
</tr>
<tr>
<td><table width="374" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecf1d55b3e830dc3080cd074c1f8780544a1b00391db566df4a9dee02807011590e575be3e6c8267dad"  target="_blank"><img style="display:block;" alt="SHOP NOW" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/0811_FF_AllDiv_LC_5.jpg" width="174" height="27"></a></td>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfb229432149ec9f1fd7c60feefad44a99ea121d1468e3c7cf219a04e46bf0fd6006a0384b7a247305"  target="_blank"><img style="display:block;" alt="FIND A STORE" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/0811_FF_AllDiv_LC_6.jpg" width="200" height="27"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfa040f45e92652e2ced9378dd19431e35f85e07f0c7951297f16bce259b12e013b6e1ca2574068f5d"  target="_blank"><img style="display:block;" alt="NOT VALID AT GAP OUTLET. " border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/081113_FriendsEvent_08.jpg" width="374" height="58"></a></td>
</tr>
</table></td>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfb1aa42fbd62b353cf6a743a5412fbf8fe0053e2abb63644f54c3837dec41ef6118a26a636c31954b"  target="_blank"><img style="display:block;" alt="Gap Friends Event" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/12/081113_ALL_FriendsEvent_3_04.jpg" width="454" height="730"></a></td>
</tr>
</table>
<!-- Begin Major Content Area --><!-- End Major Content Area -->
<table width="828" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><!-- 20130514_GPUS_Footer -->
<!-- Begin Bottom Banner -->

<!-- End Bottom Banner -->
<!-- Begin Evergreen Footer -->
<!-- 20130425_GPUS_Evergreen -->

<table border="0" cellpadding="0" cellspacing="0" width="828" align="center"><tr><td align="left" style="font-size:0px; mso-line-height-rule:exactly; line-height:0px;"><!-- 20130617_GPUS_W_Evergreen -->
<table border="0" cellpadding="0" cellspacing="0" width="828" height="347" align="center"><tr>
<td width="274" height="347" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf9c9d6482b78be8e9ef99be73950b7f16370323019458a64d8b1dcc7123813fb4"  target="_blank"><img style="display:block;" alt="1969 PREMIUM DENIM | Premium fabrics. Flattering fits. | SHOP WOMEN'S 1969 DENIM" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/20130617_Womens_EVERGREEN_03.jpg" width="274" height="347"></a></td>
<td width="281" height="347" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf150369b9b83a168bc82ced404c49aab6e29378cf048976672f49a14e78183ada"  target="_blank"><img style="display:block;" alt="NEW ARRIVALS | Just in! Everything you want right now. | SHOP WOMEN'S NEW ARRIVALS" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/20130617_Womens_EVERGREEN_04.jpg" width="281" height="347"></a></td>
<td width="273" height="347" style="mso-line-height-rule:exactly;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecf31fbfe500fb55a02b60df7c59b0cf9bd799cdfc1896762b54c2664d5e7f358dc"  target="_blank"><img style="display:block;" alt="MEET GAPFIT | All your workouts start here. | SHOP GAPFIT" border="0" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/10/2013_ADU_EVERGREEN_US_W_05.jpg" width="273" height="347"></a></td>
</tr></table></td></tr>
</table>

<!-- End Evergreen Footer -->
<!-- Begin EDFS, Store Locator, Footer -->
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center"><tr><td align="left" style="padding-top:15px; padding-bottom:15px;"><table cellpadding="0" cellspacing="0" border="0" width="828" align="center">
<tr>
<td width="828" height="55" valign="top"><a href="http://click.email.gap.com/?qs=4d634f679d740ecf07646e1a28a49b62013fcbb3cdc1639436006fe371725b6070851691e61d392b" target="_blank" ><img alt="FREE SHIPPING ON ALL ORDERS OVER $50. No code. No hassle. | FREE RETURNS ON ALL ORDERS." src="http://image.email.gap.com/lib/fe9b13707564037c70/m/11/20130716_FreeShip_BotBanner.jpg" width="828" height="55" border="0" style="display:block; font-family:Arial,Helvetica,sans-serif; font-size:10px; color:#000000;" /></a></td>
</tr>
</table></td></tr>
<tr><td align="left"><table cellpadding="0" cellspacing="0" width="828" border="0" align="center">
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="828" align="center">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="828">
<tr>
<td width="828" align="left">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecff2732417353e3e1c9b776ce896177b5cec23b8bbf02ad345129acc5af95b5b34"  target="_blank"><img alt="Where's your nearest Gap Store? | FIND IT NOW" src="http://image.email.gap.com/lib/fe9b13707564037c70/m/9/052313_static_storeLocator_03.jpg" width="828" height="55" border="0" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" /></a>
</td>
</tr>
</table>

</td>
</tr>
</table></td></tr>
<tr><td align="left" style="padding-bottom:6px;">

<table cellpadding="0" cellspacing="0" border="0" width="828" align="center">
<tr>
<td style="padding-top:36px;">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf6fee272a1dc130ae4ff8b953748710ea8b285eb7fd10959221207bd5bb786e7a"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/preferences.gif" alt="Update Your Email Preferences" width="113" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf18cc716e8814a7dd3ba82d59c41351b8b1d074bd80f282a10282dd2c840f5281"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/gap_style.gif" alt="Questions Feedback" width="206" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecfa4d0053058053909e0dfa5e178b7f3b534ae90445e8784db4c42c34d6920b5d3"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/gap_card.gif" alt="GapCard" width="95" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecff28c723b0536da444429538d6d71cb144cec16f71771b2bdbe4b58a9c60c2fc7"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/store_locator.gif" alt="Store Locator" width="120" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecff207d0fc5c0cd1cdbf2f3bd7d7d0746b58e5f67f2bb04487d7713466bb11c3c1"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/return_policy.gif" alt="Return Policy" width="158" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/stay_connected.gif" alt="Stay Connected" width="136" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right">
<table cellpadding="0" cellspacing="0" border="0" width="89">
<tr>
<td style="padding-right:10px;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecf8d071ac9651eb51ef8205cd15e152689509a6399eaf8e580540456a630979a65"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/fb_icon.gif" alt="Facebook" width="23" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:10px;">
<a href="http://click.email.gap.com/?qs=4d634f679d740ecfe2beaff783b817d01dcfb507de5597f606940a25d15156acbab851e625fa9043"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/5/110812_ALL_giftCardTemplate_4.jpg" alt="Pinterest" width="23" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>

</td>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecf59442916b34b83b7e175912221e62a14e703abf2771b7c2095af1518c6d6cf26"  target="_blank"><img src="http://image.email.gapinc.com/lib/fe9813707564027577/m/5/twitterIconUpdate.jpg" alt="Twitter" width="23" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" style="padding-top:10px">
<table cellpadding="0" cellspacing="0" border="0" width="89">
<tr>
<td style="padding-right:10px;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecf5cfe4afea26793db936657ecadc0f0c869cf1613aba79402aae7e9727666197b"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/5/110812_ALL_giftCardTemplate_3.jpg" alt="Instagram " width="23" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:10px;"><a href="http://click.email.gap.com/?qs=4d634f679d740ecfef6c7dad4fe9f99f72d51c7ecd05a3e9fa9b2c3012cd0e09f4adaf7bf5331cee"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/5/110812_ALL_giftCardTemplate_2.jpg" alt="Styld.by" width="21" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td><a href="http://click.email.gap.com/?qs=4d634f679d740ecfd91e9d2c8b32f0781af4133d1b1b05a088bdeb6e74849cc33335a49aaba858b7"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/5/110812_ALL_giftCardTemplate_1.jpg" alt="Mobile" width="23" height="23" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/visit_all_brands.gif" width="700" height="46" border="0" style="display:block; font-family: Arial, Helvetica, sans-serif; font-size: 10px;" />
</td>
</tr>
<tr>
<td style="padding-bottom:25px;">
<table cellpadding="0" cellspacing="0" border="0" width="541" align="center">
<tr>
<td style="padding-right:21px;"> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf098ab325058c12b9f8d2556e747b65cb943984f0112a5c503f2dac48d7ac8c27"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_gap_brand_image.jpg" alt="Gap" width="25" height="27" border="0" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" /></a>
</td>
<td style="padding-right:21px;"> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf55495e8e987a2b4c840d8ab3b80eb494b90078f384b1a883eaffb6ede093c2ca"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_old_navy.jpg" alt="Old Navy" width="68" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:21px;"> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf94d49f7759254fcb0164a5571db363a45dce14cc4106b36482ad9d001f7c5636"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_banana_republic.jpg" alt="Banana Republic" width="79" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:21px;"> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf462214de3948dc2588a5561d8aa9d5fc1c014daed1f5f845faaa605c141019eb"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_piperlime.jpg" alt="Piperlime" width="77" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:21px;">  <a href="http://click.email.gap.com/?qs=4d634f679d740ecf0edbc77c247ebbd514eba8ee47a203e7157cabd166a9af869cd25ea7d084559b"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_athleta.jpg" alt="Athleta" width="61" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td style="padding-right:21px;">  <a href="http://click.email.gap.com/?qs=4d634f679d740ecf5f78a5b0c99a5d7ff77fd7209d5d066ce695ba43b9498fb5676b9fdc520e2474"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_gap_outlet.jpg" alt="Gap Outlet" width="25" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
<td> <a href="http://click.email.gap.com/?qs=4d634f679d740ecfe0e816fcd67a437639ba85d3e38f8ae9c495de3bbe4b01ec7a8d7207233bc0e4"  target="_blank"><img src="http://image.email.gap.com/lib/fe9b13707564037c70/m/1/G_b_r_factory_store.jpg" alt="Banana Republic Factory Store" width="80" height="27" style="display:block; font-family:Arial, Helvetica, sans-serif; font-size: 10px;" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 10px; padding-bottom:20px;"> <a href="http://click.email.gap.com/?qs=4d634f679d740ecf9f38e05600c060134a78ac27e37e72e3a8d9185c78107109e9772c5ad51f1d0f"  target="_blank">PRIVACY POLICY</a> | <a href="http://click.email.gap.com/?qs=4d634f679d740ecf6b9bf19b0993b4a5f3d9ec7a286f2df968b6cf87ae773affedf2917404390528"  target="_blank">UNSUBSCRIBE</a>
</td>
</tr>
<tr>
<td> <img src="http://login.dotomi.com/ucm/UCMController?dtm_com=2&dtm_cid=2366&dtm_cmagic=d3b1fb&dtm_fid=103&dtm_format=6&cli_promo_id=99&dtm_email_hash=1280034bd9948c922340b3b225adc533&dtm_user_id=170831124&dtmc_segment_name=GPRESTET&dtmc_email_category=20130811_GPUS_FF_AllDiv_LC&dtmc_drop_id=20130811&dtmc_brand=GPUS" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub1.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub2.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub3.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0">
<img src="http://ads.dotomi.com/cookieredir/2366/pub4.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub5.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub6.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub7.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub8.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0"> <img src="http://ads.dotomi.com/cookieredir/2366/pub9.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0">
<img src="http://ads.dotomi.com/cookieredir/2366/pub10.php?a1280034bd9948c922340b3b225adc533170831124=1" width="1" height="1" border="0">
</td>
</tr>
</table></td></tr>
</table>
<!-- End EDFS, Store Locator, Footer -->
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center"><tr><td align="left" style="font-family:Arial,Helvetica,sans-serif; font-size:10px; line-height:13px; color:#999999;">

<!-- Begin Top Banner Legal -->

<!-- End Top Banner Legal -->
<table border="0" cellpadding="0" cellspacing="0" width="828" align="center"><tr><td align="left" style="font-family:Arial,Helvetica,sans-serif; font-size:10px; line-height:13px; color:#999999;">Offer valid August 8 - August 11, 2013 from 12:00 am ET to 11:59 pm ET online and at Gap, GapBody, GapKids and babyGap stores in the U.S. only (including Puerto Rico). Offer not valid at Gap Outlet or Gap Factory Stores. Discount applies to merchandise only. In store exclusions include LP by Linea Pelle, SeaVees, Minnetonka, ’47 Brand, Linea Pelle, Vismaya, Baggu, Jonathan Adler, Casio, Clap, Coloud, Native Union, Moleskine, Sarut, Alice Ritter Brooklyn, bkr, Diggin Active Inc., Lunchskins, International Arrivals, Threadless, Fashion Angels, Verla, Chronicle Publishing, Begin Again, Natural Products Worldwide Co., Sophie the Giraffe, Hape, Haba, Melissa & Doug, Bellaband, Hello!Lucky, Puma, Puppet Workshop, Areaware, Penguin Group, Random House Inc., Tailgate, Charm It!,
Junk Food and any other products from brands other than Gap. Online exclusions include Junk Food™, Star Wars™, Clu™, Minnetonka™, Threadless®, Tailgate®, Alice Ritter™, Beatrix Potter™, NuBra®, Medela® and Bravado®. Price adjustment allowed only once within 7 days of previous in-store purchases only. Not combinable with other offers or discounts except for Reward Cards, 10% GapCard Tuesday, 10% GapCard Shopping Pass and the initial acquisition discount when approved for a new GapCard. Not combinable with Gap Inc. Employee Discount. Discount taken at register. <br>
<br></td></tr></table>
<!-- Begin Bottom Banner Legal -->

<!-- End Bottom Banner Legal -->
<span style="font-weight:bold;">Everyday Free Shipping</span> is valid in the U.S. only (including Puerto Rico) on purchases of $50 or more in the same order. Gift cards, packaging, taxes and prior purchases do not qualify toward the minimum purchase requirement and offer cannot be applied to such items. Eligible customers must select this option during checkout in order to receive free shipping. Offer is good for the order's first "ship-to" address anywhere in the U.S. (including Puerto Rico). If you choose another shipping option, additional charges will apply. Cannot be combined with other offers or discounts. No adjustments on previous purchases. Offer is non-transferable and subject to change without notice. Not valid on international shipments.
<br /><br />
If you have any questions about our privacy policy, contact our customer service center via email at <a href="mailto:custserv@gap.com">custserv@gap.com</a> or call us at 1-800-GAP-STYLE (1-800-427-7895) option 4. You may also contact us by postal mail at gap.com Customer Services, 100 Gap Online Drive, Grove City, OH 43123-8605.<br />
<br />
&copy; 2013 Gap Inc.</td></tr></table></td>

</tr>
</table></td>
</tr>
</table>
</body>
</html>

--jzixueVetTTE=_?:--
sniemetz commented 11 years ago

Found the issue:

in the email they have a newline here:

Content-Type: multipart/alternative; boundary="jzixueVetTTE=_?:"

if I remove the newline it parses....

JotaGil commented 11 years ago

Cool, just replace

Content-Type: multipart/alternative; boundary="jzixueVetTTE=_?:"

For Content-Type: multipart/alternative; boundary="jzixueVetTTE=_?:"

Thanks for your feedback!

sniemetz commented 11 years ago

Yeah I am preprocessing now before parsing. Annoying though! Thanks again

Sent from myPhone On Aug 11, 2013 10:24 PM, "Jose Manuel Gil Carrillo" < notifications@github.com> wrote:

Cool, just replace

Content-Type: multipart/alternative; boundary="jzixueVetTTE=_?:"

For Content-Type: multipart/alternative; boundary="jzixueVetTTE=_?:"

Thanks for your feedback!

— Reply to this email directly or view it on GitHubhttps://github.com/JotaGil/CustomMimeMailParse/issues/1#issuecomment-22473846 .