Re: Generating HTML link to EML embedded attachments

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Generating HTML link to EML embedded attachments
    ... 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 ...
    (microsoft.public.exchange.development)
  • Re: outlook express - attachments come as wordpad
    ... ..eml files should be opened by Outlook Express. ... > thanks for showing me how to change the application, ... >>> Attachments sent to me open as wordpad regardless ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Process E-mail attachements
    ... You would need to first convert the EML files (which Outlook does not ... understand natively) to regular messages. ... I'm having trouble accessing the attachments of the attachments using VBA. ...
    (microsoft.public.outlook.program_vba)
  • Re: Process E-mail attachements
    ... I misspoke when I said they were EML files. ... Outlook 2002 and higher expose ... Outlook) you can create temporary standalone MSG files and import EML files: ... I'm having trouble accessing the attachments of the attachments using VBA. ...
    (microsoft.public.outlook.program_vba)
  • Some .EML files not generated by W32.Nimda.A@mm
    ... Just a side note relating to .EML files. ... If you are using the SMTP ... moral of the story is, if you have a heap of .EML files under your IIS web, ... This email message (and attachments) may contain information that is ...
    (NT-Bugtraq)