Mime-Version: |
1.0 |
Sender: |
|
Subject: |
|
From: |
|
Date: |
Thu, 8 Feb 2007 17:04:35 +0000 |
In-Reply-To: |
|
Content-Type: |
text/plain; charset="us-ascii" ; format="flowed" |
Reply-To: |
|
Parts/Attachments: |
|
|
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
...
|
|
|