Re: How to Save Embedded Message into Files with CDO?

From: Sue Mosher [MVP-Outlook] (suemvp_at_outlookcode.com)
Date: 11/10/04


Date: Tue, 9 Nov 2004 21:28:46 -0500

You might find the code sample at
http://www.outlookcode.com/codedetail.aspx?id=523 useful. It shows how to
use Redemption to create an Outlook item from a .msg file.

-- 
Sue Mosher, Outlook MVP
Author of
     Microsoft Outlook Programming - Jumpstart for
     Administrators, Power Users, and Developers
     http://www.outlookcode.com/jumpstart.aspx
<nycboy> wrote in message news:uHWy3OsxEHA.2036@TK2MSFTNGP12.phx.gbl...
> But I am looking for a way of
> recursively saving any .msg file
> (if any) contained in a .msg file.
> In other words, for any attached
> msg file, I need to check whether
> it contains .msg files itself. If
> yes, I want to save them individually.
> Is it possible to do?
>
> Thanks.
>
> David
>
>
> ---- original message ----
> Re: How to Save Embedded Message into Files with CDO?
>
> You can, but not with CDO - OOM should be fine (Attachment.SaveAsFile)
> BTW, .MSG attachments are different from the embedded messages - .MSG
> attachment is just a regular attachment with happens to contain an MSG
> file,
> embedded message is an attachment of a special kind.
> OLE attachments (embedded objects in RTF messages; plain text or HTML
> can
> never have those) are off limits.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> <nycboy> wrote in message
> news:%23z$8v9pxEHA.1296@TK2MSFTNGP10.phx.gbl...
>> Thanks Dmitry.
>>
>> Did you mean that I can't even save the .msg files
>> if they are Outlook attachments (with CDO)?
>>
>> David
>>
>> ---- Original Message ----
>> Re: How to Save Embedded Message into Files with CDO?
>> From: Dmitry Streblechenko \(MVP\)
>> Date Posted: 11/9/2004 12:25:00 PM
>>
>> Embedded attachments in the RTF messages are are really OLE storage
>> files
>> (IStorage), they are meaningless by themselves. Note that even Outlook
>> won't
>> let you save such attachments as files.
>>
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy - Outlook, CDO
>> and MAPI Developer Tool
>>
>>
>> <nycboy> wrote in message
> news:OyiuZkoxEHA.1956@TK2MSFTNGP14.phx.gbl...
>> > I use CDO to read message attachments and I want to save them as
> files
>> > into a file folder. However CDO does not support WriteToFile for
>> > CdoFileLink or CdoEmbeddedMessage attachments, is there an
> alternative
>> > way of saving these type of messages into files?
>> >
>> > Thanks!
>> >
>> > -David
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it! 


Relevant Pages

  • Re: Underlining & emboldening e-mail text
    ... You can use almost any HTML tag you need to support rich text. ... I am currently implemeting your recommended CDO method. ... readily adaptable to send any number of attachments. ... Method 1: Automate Outlook. ...
    (microsoft.public.access.formscoding)
  • Re: Trying to fill a form/table importing emails from outlook
    ... event in Outlook to automatically categorize the emails as you go and/or save ... save the .msg file in the correct folder. ... attachments and when opened will open up back in outlook allowing you to ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reading Outlook .msg file using Python
    ... directly from Outlook. ... of the msg file (works when dealing with message in an Outlook ... to reading an Outlook/Exchange message box. ... out how to extract the attachments. ...
    (comp.lang.python)
  • Re: How to Save Embedded Message into Files with CDO?
    ... contained in a .msg file. ... How to Save Embedded Message into Files with CDO? ... OLE attachments (embedded objects in RTF messages; ...
    (microsoft.public.outlook.program_vba)
  • Re: Reading Outlook .msg file using Python
    ... directly from Outlook. ... When reading the msg file, ... Same issue when accessing attachments. ...
    (comp.lang.python)