Re: Generating HTML link to EML embedded attachments
- From: "Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 11:57:44 +1000
What's the source of the EML files eg are these emails you have already
extracted from exchange and downloaded to a directory somewhere. An EML file
is basically a RFC 822 serialized version of the message the attachments
within that stream are going to be MIME encoded to process attachments
within a stream you need to decoded them. Browsers because they are
basically made to read web pages dont have the ability to decode MIME
attachments Exchange's OWA handles this decoding for you. If you want to
decode EML files is a web application (eg Asp,ASP.net) then you need to look
at using something like CDOEX which can handle decoding MIME content you can
load the EML content via the streams interface and then use the various
Interfaces to do content conversion. see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_cdo_progtasks_loading_messages_from_within_ado_stream_objects.asp
Cheers
Glen
"NgelW" <NgelW@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B2550B0D-30AF-4695-9228-B31B79803FE8@xxxxxxxxxxxxxxxx
Hi All,
I need to present EML files in a browser, and so want to create HTML links
to the attachments embedded in the file (if the broswer does not know what
to
do with them - eg. a ZIP file - will leave the browser to deal with JPEG
etc.), and add these links to the BODY of the EML file.
I realise that I could enumerate the email attachments (using webDAV and
X-MS-ENUMATTS) to seperate files on the server, but I would prefer to keep
everything wrapped up in a single file
For example, an email may contain the following attachment:
------_=_NextPart_001_01C66558.AA5172EC
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Location: HTML 3.zip
UEsDBAoAAAAAANuDlTQAAAAAAAAAAAAAAAAJAAAASFRNTC9jc3MvUEsDBBQAAAAIANuDlTRmlIa4
jQIAAM8IAAAZAAAASFRNTC9jc3MvYmFyY2xheXNmb3JtLmNzc61V30/bMBB+TiX+B0to0sYopGkK
etc.
Is it possible to generate a <a href=> link to the file? What will the
href
be? Is there another better way of converting an EML file into a file
that
can be opened in a browser, and have all its attachments "processed" (eg.
viewed if JPG, downloaded to local machine if ZIP, etc.)
Many thanks,
Nigel
.
- References:
- Generating HTML link to EML embedded attachments
- From: NgelW
- Generating HTML link to EML embedded attachments
- Prev by Date: Re: Scripting Apply Recipient policy
- Next by Date: Re: How to Add Attachment to Item On Exchnage Store with WebDAV
- Previous by thread: Generating HTML link to EML embedded attachments
- Next by thread: Re: direct push
- Index(es):
Relevant Pages
|