PC Review


Reply
Thread Tools Rate Thread

accessing loose msgs

 
 
=?Utf-8?B?a2hjaGFybGVz?=
Guest
Posts: n/a
 
      4th Feb 2005
Just wondering if there was a way of accessing an msg file. not an email
through mapi but an actual "c:\new email.msg"
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      4th Feb 2005
Depends on what kind of item it is and what you want to do with it ... which
is?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"khcharles" <(E-Mail Removed)> wrote in message
news:7DFF04E4-729E-4BA4-B03C-(E-Mail Removed)...
> Just wondering if there was a way of accessing an msg file. not an email
> through mapi but an actual "c:\new email.msg"



 
Reply With Quote
 
=?Utf-8?B?a2hjaGFybGVz?=
Guest
Posts: n/a
 
      4th Feb 2005
the msg file is a outlook email item that was parsed out from a pst. I would
like to extract out the attachments from them. So let's say that there is an
msg file with an office document as an attachment. I would like to be able
to save that document, doc, rtf, xls, whatever, into it's own file.

in a nutshell i'd like to be able to programmatically open up loose email
files and perform something analogous to a "save as" on it's attachments.


"Sue Mosher [MVP-Outlook]" wrote:

> Depends on what kind of item it is and what you want to do with it ... which
> is?
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "khcharles" <(E-Mail Removed)> wrote in message
> news:7DFF04E4-729E-4BA4-B03C-(E-Mail Removed)...
> > Just wondering if there was a way of accessing an msg file. not an email
> > through mapi but an actual "c:\new email.msg"

>
>
>

 
Reply With Quote
 
=?Utf-8?B?a2hjaGFybGVz?=
Guest
Posts: n/a
 
      4th Feb 2005
Let me be more explicit

I have a file "C:\email.msg"

it is an outlook email item. inside this email there is an attachment that
is an excel file named "report.xls"

I want to extract email attachments from loose email files with msg file
extensions and save the attachment as a file. In this case I want
"c:\report.xls".


"khcharles" wrote:

> the msg file is a outlook email item that was parsed out from a pst. I would
> like to extract out the attachments from them. So let's say that there is an
> msg file with an office document as an attachment. I would like to be able
> to save that document, doc, rtf, xls, whatever, into it's own file.
>
> in a nutshell i'd like to be able to programmatically open up loose email
> files and perform something analogous to a "save as" on it's attachments.
>
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
> > Depends on what kind of item it is and what you want to do with it ... which
> > is?
> >
> > --
> > Sue Mosher, Outlook MVP
> > Author of
> > Microsoft Outlook Programming - Jumpstart for
> > Administrators, Power Users, and Developers
> > http://www.outlookcode.com/jumpstart.aspx
> >
> >
> > "khcharles" <(E-Mail Removed)> wrote in message
> > news:7DFF04E4-729E-4BA4-B03C-(E-Mail Removed)...
> > > Just wondering if there was a way of accessing an msg file. not an email
> > > through mapi but an actual "c:\new email.msg"

> >
> >
> >

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      4th Feb 2005
Since you don't care anything about the details of the .msg file itself,
only its attachments, this is pretty easy to do. Use the
Namespace.GetItemFromTemplate method with the path to the .msg file as the
argument. The item that method returns will be a new unsent MailItem whose
Attachments collection you can then iterate.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"khcharles" <(E-Mail Removed)> wrote in message
news:519374F7-BE22-4AC9-9418-(E-Mail Removed)...
> the msg file is a outlook email item that was parsed out from a pst. I
> would
> like to extract out the attachments from them. So let's say that there is
> an
> msg file with an office document as an attachment. I would like to be
> able
> to save that document, doc, rtf, xls, whatever, into it's own file.
>
> in a nutshell i'd like to be able to programmatically open up loose email
> files and perform something analogous to a "save as" on it's attachments.
>
>> > Just wondering if there was a way of accessing an msg file. not an
>> > email
>> > through mapi but an actual "c:\new email.msg"



 
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
Paste HTML from a web page: either loose content, or loose format =?Utf-8?B?QWxleCBKYXJyYW4=?= Microsoft Outlook Calendar 0 22nd Apr 2006 03:44 AM
Loose I/O Shield, OK? QZ DIY PC 8 10th Oct 2005 05:43 PM
Delay in accessing received msgs Diane Vreuls Friebert Microsoft Access Form Coding 1 2nd Feb 2005 03:21 PM
outlook '03: duplicate msgs/deleted msgs from safe senders =?iso-8859-1?B?cmVu6WU=?= Microsoft Outlook Discussion 0 11th Feb 2004 10:38 PM
OT: Has somebody let loose... RJK Windows XP General 15 23rd Jan 2004 10:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 PM.