PC Review


Reply
Thread Tools Rate Thread

How to Save Embedded Message into Files with CDO?

 
 
nycboy
Guest
Posts: n/a
 
      9th Nov 2004
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!
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      9th Nov 2004
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:(E-Mail Removed)...
> 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!



 
Reply With Quote
 
nycboy
Guest
Posts: n/a
 
      9th Nov 2004
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:(E-Mail Removed)...
> 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!



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      9th Nov 2004
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$(E-Mail Removed)...
> 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:(E-Mail Removed)...
> > 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!

>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
nycboy
Guest
Posts: n/a
 
      10th Nov 2004
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$(E-Mail Removed)...
> 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:(E-Mail Removed)...
> > 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!
 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      10th Nov 2004
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:(E-Mail Removed)...
> 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$(E-Mail Removed)...
>> 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:(E-Mail Removed)...
>> > 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!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save embedded message objects in a Word doc using VBA carole l Microsoft Word Document Management 1 22nd Dec 2009 11:21 AM
How to save gif embedded in a message Pincopallino Microsoft Outlook 2 24th Nov 2004 08:55 PM
2 Thunderbird questions - 1) save embedded graphics, 2) save as html files. fitwell Freeware 3 11th Jul 2004 09:52 AM
2 Thunderbird questions - 1) save embedded graphics, 2) save as html files. fitwell Freeware 0 9th Jul 2004 02:36 PM
save html files as .doc files with embedded images? RP Microsoft Word Document Management 5 30th Nov 2003 10:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 PM.