Mime multipart/related
Vonage recently upgraded voicemail software. In that upgrade they went from using Content-Type: multipart/mixed to multipart/related. With this I can no longer see the attached file when looking at the email. Mail.app on Leopard sees no attachment at all, however the iPhone shows that there is an attached file but when you look at the email the client no longer sees an attached file.
I've had sample voice mails sent to test accounts i have yahoo,gmail and mac.com. Each of these webmail clients show an attachment and when viewing the email the attached file shows up properly. When I use Mail.app from either my iPhone or my mac and look at the email that is on my .mac account I'm unable to view the attached file.
I'm going to start with posting the new headers that don't work. I'm not going to post the entire wav binary because that will be rather large, just the top and body of the base64 encoded string.
I've also modified phone numbers and email address. Also lines that have 2 -'s at the front and back don't show up correctly. Seems the post markup has some issues with them, I've tried putting extra white space in between the -'s but that doesn't help much
Return-path: <5555555552@vm.vonage.com>
Envelope-to: nobody@nowhere.com
Delivery-date: Thu, 23 Oct 2008 16:34:20 -0400
Received: from mail-ob-04.kiad0.s.vonagenetworks.net ([69.59.229.101])
by server54.tchmachines.com with esmtp (Exim 4.69)
(envelope-from <5555555552@vm.vonage.com>)
id 1Kt6su-0007kv-4n; Thu, 23 Oct 2008 16:34:20 -0400
X-Mailbox-Line: From nobody Thu Oct 23 20:34:25 2008
Content-Type: multipart/related;
boundary="===============7623231014265881941=="
MIME-Version: 1.0
From: 5555555551@vm.vonage.com
Sensitivity: Normal
X-Priority: 3
To: nobody@nowhere.com
Subject: You have received a new voicemail message
X-VM-Notification: 1
Message-Id: <20081023203425.AB9DE27A5D4@mail-ob-04.kiad0.s.vonagenetworks.net>
Date: Thu, 23 Oct 2008 20:34:25 +0000 (UTC)
This is a multi-part message in MIME format
--===============7623231014265881941==
Content-Type: multipart/alternative;
boundary="===============7784912133803116621=="
MIME-Version: 1.0
--===============7784912133803116621==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Date: Oct 23 2008 04:34:16 PM
From: 5555555552
To : Nobdody (5555555551)
- -===============7784912133803116621==--
--===============7623231014265881941==
Content-Type: audio/x-wav
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="voice-message.wav"
UklGRhgWAQBXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABkYXRh8BUBAP///33/fX3///99
(insert a bunch of chars)
/////////////////////////////////////////////////////////////////////////w==
- -===============7623231014265881941==--
These are the old headers that worked on the Iphone and Mail.app
Return-path: <5555555552@vm.vonage.com>
Envelope-to: nobody@nowwhere.com
Delivery-date: Mon, 23 Jun 2008 15:15:26 -0400
Received: from mail-ob-02.klga1.s.vonagenetworks.net ([216.115.22.172])
by server54.tchmachines.com with esmtp (Exim 4.68)
(envelope-from <5555555552@vm.vonage.com>)
id 1KArVS-0005ng-9C; Mon, 23 Jun 2008 15:15:25 -0400
X-Mailbox-Line: From nobody Mon Jun 23 19:15:16 2008
Content-Type: multipart/mixed; boundary="===============7501774465405555155=="
MIME-Version: 1.0
From: 5555555552@vm.vonage.com
Sensitivity: Normal
Priority: 3
To: nobody@nowhere.com
Subject: You have received a new voicemail message
X-VM-Notification: 1
Message-Id: <20080623191516.5A32119F3E7@mail-ob-02.klga1.s.vonagenetworks.net>
Date: Mon, 23 Jun 2008 19:15:16 +0000 (UTC)
X-Spam-Status: No, score=-0.7
X-Spam-Score: -6
X-Spam-Bar: /
X-Spam-Flag: NO
--===============7501774465405555155==
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Jun 23 2008 03:15:11 PM
From: 5555555552
To : Nobdody (5555555551)
--===============7501774465405555155==
Content-Disposition: attachment;
filename=voice-message.wav
Content-Type: audio/x-wav;
name=voice-message.wav
Content-Transfer-Encoding: base64
UklGRngTAQBXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABkYXRhUBMBAP//fn7//3x //5
(insert more chars)
/v9 /35+fn7/fn7/fv9+/37/w==
- -===============7501774465405555155==--
Mac Pro, Mac OS X (10.5.5)