Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > big trouble getting data from attachment in email

Reply
Thread Tools

big trouble getting data from attachment in email

 
 
nephish
Guest
Posts: n/a
 
      02-25-2011
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: <(E-Mail Removed)>
X-Original-To: http://www.velocityreviews.com/forums/(E-Mail Removed)
Delivered-To: (E-Mail 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 <(E-Mail Removed)>; Fri, 25 Feb 2011 15:47:41 -0600 (CST)
Reply-To: <(E-Mail Removed)>
From: (E-Mail Removed)
To: (E-Mail Removed)
Subject: SBD Msg From Unit: 300234010906500
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="SBD.Boundary.605592468"
Message-Id: <(E-Mail Removed) ium.com>
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GIDS 2009 .Net:: Save Big, Win Big, Learn Big: Act Before Dec 29 2008 Shaguf ASP .Net 0 12-26-2008 09:29 AM
GIDS 2009 .Net:: Save Big, Win Big, Learn Big: Act Before Dec 29 2008 Shaguf ASP .Net Web Controls 0 12-26-2008 06:11 AM
GIDS 2009 Java:: Save Big, Win Big, Learn Big: Act Before Dec 29 2008 Shaguf Python 0 12-24-2008 07:35 AM
GIDS 2009 Java:: Save Big, Win Big, Learn Big: Act Before Dec 29 2008 Shaguf Ruby 0 12-24-2008 05:07 AM
Photos for email.... How big, is too big? Big.David.NJ@gmail.com Computer Support 8 01-30-2008 02:36 PM



Advertisments