big trouble getting data from attachment in email

N

nephish

Hey all,
We are getting data from radios in the field by way of email. i have been able to extract the atachments and use them, but they changed some things in their message, and now i am kinda stuck.

here is an example:



From nobody Fri Feb 25 16:09:41 2011
Return-Path: <[email protected]>
X-Original-To: (e-mail address removed)
Delivered-To: (e-mail address removed)
Received: from istbsp01.sbd.iridium.com (outbound.sbd.iridium.com
[12.47.179.11])
by mail.texaspivot.com (Postfix) with ESMTP id EF1C3439C3
for <[email protected]>; Fri, 25 Feb 2011 15:47:41 -0600 (CST)
Reply-To: <[email protected]>
From: (e-mail address removed)
To: (e-mail address removed)
Subject: SBD Msg From Unit: 300234010906500
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="SBD.Boundary.605592468"
Message-Id: <[email protected]>
Date: Fri, 25 Feb 2011 21:45:40 +0000 (GMT)

SBM Message
--SBD.Boundary.605592468
Content-Type: text/plain;charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

MOMSN: 1931
MTMSN: 0
Time of Session (UTC): Fri Feb 25 21:45:40 2011
Session Status: 00 - Transfer OK
Message Size (bytes): 16

Unit Location: Lat = 40.121138 Long = -97.672171
CEPradius = 2


--SBD.Boundary.605592468
Content-Type: application/x-zip-compressed; name="SBMmessage.sbd"
Content-Disposition: attachment; filename="300234010906500_001932.sbd"
Content-Transfer-Encoding: base64

this is the part i need to get. the 300234010906500.sbd is the attachment that i need to save.

i am using the msg.walk() but all the examples i see use a different content-type.

thanks for any help.
sk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top