Re: How to extract attachments from this message with CDO ?

From: Strider (Strider_at_invalid_address.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 17:29:05 +0100

Yeah, thats the solution I used myself.

I find it really strange that CDO2000 attempts to hide attachments with a
content type of application/ms-tnef.........

You may come accross another problem. If you attempt to save an email to
disk with CDO2000 that has an attachment of application/ms-tnef, the
attachment will get lost.

Strider./

"Olivier Matrot" <olivier.matrot@REMOVE_CAPS_AND_INVALIDrte.fr.invalid>
wrote in message news:uhQhIm7%23DHA.1452@TK2MSFTNGP09.phx.gbl...
> Found it.
> Used the IBodyPart Interface of the message to save the body part to a
file.
>
> "Olivier Matrot" <olivier.matrot@REMOVE_CAPS_AND_INVALIDrte.fr.invalid>
> wrote in message news:%23DhJRV4%23DHA.916@TK2MSFTNGP10.phx.gbl...
> > You're saying that that I can get this attachment from CDO ? How can I
> > safely extract it to another file in order to process it ?
> >
> > "Dmitry Streblechenko (MVP)" <dmitry@dimastr.com> wrote in message
> > news:upxi1N3%23DHA.688@tk2msftngp13.phx.gbl...
> > > CDO does not deal with it, winmail.dat is Outlook specific (even
though
> > TNEF
> > > is standard). You might also want to take a look at the JTNEF Java
> library
> > > at http://www.freeutils.net/source/jtnef/
> > >
> > > Dmitry Streblechenko (MVP)
> > > http://www.dimastr.com/
> > > OutlookSpy - Outlook, CDO
> > > and MAPI Developer Tool
> > >
> > >
> > > "Olivier Matrot"
<olivier.matrot@REMOVE_CAPS_AND_INVALIDrte.fr.invalid>
> > > wrote in message news:enBY0F3%23DHA.2520@TK2MSFTNGP11.phx.gbl...
> > > > This message is dumped from a transport event sink during the
> > > > OnMessageSubmission Event. It comes from a MAPI client.
> > > > I wanted to parse the TNF stream, yes, but before that, I would like
> to
> > > > extract it from the message. From now on I fail to do that with CDO.
> > > >
> > > > "Dmitry Streblechenko (MVP)" <dmitry@dimastr.com> wrote in message
> > > > news:OhTm53u%23DHA.3220@TK2MSFTNGP10.phx.gbl...
> > > > > Please be more specific, most people would not open an attachment
> (any
> > > > > attachment) from a newsgroup.
> > > > > You can parse a TNEF stream (that's what winmail.dat is)
> > > programatically.
> > > > > See MSDN; I also have a sample Delphi class that parses TNEF - go
to
> > the
> > > > URL
> > > > > in my sig., click OutlookSpy, then Resources.
> > > > >
> > > > > Dmitry Streblechenko (MVP)
> > > > > http://www.dimastr.com/
> > > > > OutlookSpy - Outlook, CDO
> > > > > and MAPI Developer Tool
> > > > >
> > > > >
> > > > > "Olivier Matrot"
> > <olivier.matrot@REMOVE_CAPS_AND_INVALIDrte.fr.invalid>
> > > > > wrote in message news:uX432pr%23DHA.3232@TK2MSFTNGP10.phx.gbl...
> > > > > > Can someone show me how to extract attachment frm this type of
EML
> > > file
> > > > > with
> > > > > > CDO ?
> > > > > > TIA
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: inheriting from datetime
    ... gah, yeah that was strange. ... what is the point of accepting invalid dates? ... thats a long story. ...
    (comp.lang.python)
  • Re: Testosterone is anabolic or not?
    ... All i got were stupid remarks like "stick to your own KIND" Yeah, ... Turkish and Moroccon girls can be very pretty, but thats a nono. ... I had this African girlfriend 3 years ago. ... doesnt trust me near the presence of black women. ...
    (misc.fitness.weights)
  • Re: AVLV Photos need updating
    ... Yeah, go figure. ... What does Grammer, Indiana have to do with grammar and spelling? ... Racked up over 120 quarters with the SSA and thats ...
    (alt.vacation.las-vegas)
  • Re: "There was no rage or anything. He was just like a robot stabbing the guy."
    ... time to plan, no time to place oneself, no time to arm oneself if a ... I don't believe that he gave off no signs of being strange. ... Yeah, strange. ... It's the nature of the weapon - the knife needs no body commitment, ...
    (rec.martial-arts)
  • Re: UK faction: Kano?
    ... > yeah there has been a fair bit of that in Hampshire as well I think. ... > as I can be without being in London area. ... > really do some server side stuff like apache as well. ... i would like to learn .php though, thats looks useful. ...
    (rec.music.hip-hop)