MACSCRPT Archives

February 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 8 Feb 2007 17:04:35 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
At 7:09 am -0800 8/2/07, John Baxter wrote:

>On Feb 8, 2007, at 4:06 AM, John Delacour wrote:
>>
>>then parse it to extract the base64-encoded data of the attachment, 
>>decode this using Perl, munpack or something, and write to a file. 
>>It's not too difficult once you've done it.
>
>An attachment can't be assumed to be base64-encoded....

Sure.  But the attachment is going to be a MIME attachment and the 
parsing of the message will discover what sort of decoding is needed.


_Content-Type: multipart/appledouble; 
_boundary="============_-1041339040==_D============"

_--============_-1041339040==_D============
_Content-Type: application/octet-stream; name="1867flute.pdf"
_Content-Disposition: attachment; filename="1867flute.pdf"
_Content-Transfer-Encoding: base64

_JVBERi0xLjMKJcTl8uXrp/Og0MTGCjIgMCBvYmoKPDwgL0xlbmd0aCA0IDAgUiAvRmls
_dGVyIC9GbGF0ZURlY29kZSA+PgpzdHJlYW0KeNrFXVmPG0eSfs9fUeNZ+IKUnfdhYLGw
...

ATOM RSS1 RSS2