PC Review


Reply
Thread Tools Rate Thread

How to create and access (add/delete mails) .PST file at runtime?

 
 
ksskumar
Guest
Posts: n/a
 
      3rd Feb 2004
Hi,

I need to store selected mails into some different .pst file at
runtime. Also want to access those mails in .pst at runtime. I can
import and export mails into .MSG file. But it is hard to maintain
mails as .msg files.

My queries are,

1. How to create/open .PST file at runtime ?
2. How to add/delete (import/export) mails (any format like .MSG,
..EML, etc.,) into .PST at runtime ?

Is there any way to handle this kind of situation thru Outlook object
model or CDO or Extended MAPI or Redemption or any other way?

Thanks in advance

with best regards,
Kumar
 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      3rd Feb 2004
1. Use Namespace.AddStore/RemoveStore
2. To save in the MSG format, call
MailItem.SaveAs "path" olMsg
EML files are not directly supported by Outlook; you'd have to either
programmatically create EML files from the message properties using Extended
MAPI or CDO 1.21 (OOM is not really up to the task) or <plug> you can use
Redemption (url in my sig.) - see SafeMailItem.SaveAs ..., olRFC822 and
SafeMailItem.Import ..., olRFC822 </plug>

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


"ksskumar" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I need to store selected mails into some different .pst file at
> runtime. Also want to access those mails in .pst at runtime. I can
> import and export mails into .MSG file. But it is hard to maintain
> mails as .msg files.
>
> My queries are,
>
> 1. How to create/open .PST file at runtime ?
> 2. How to add/delete (import/export) mails (any format like .MSG,
> .EML, etc.,) into .PST at runtime ?
>
> Is there any way to handle this kind of situation thru Outlook object
> model or CDO or Extended MAPI or Redemption or any other way?
>
> Thanks in advance
>
> with best regards,
> Kumar



 
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 can I create a macro with an icon to permanetly delete mails =?Utf-8?B?UmFscGggQw==?= Microsoft Outlook VBA Programming 1 20th Jun 2006 05:27 AM
How to create a access runtime? marko Microsoft Access 5 3rd Oct 2005 06:57 PM
How to create and access (add/delete mails) .PST file at runtime? ksskumar Microsoft Outlook Form Programming 2 3rd Feb 2004 12:46 PM
How to create and access (add/delete mails) .PST file at runtime? ksskumar Microsoft Outlook VBA Programming 1 3rd Feb 2004 08:18 AM
How to create and access (add/delete mails) .PST file at runtime? ksskumar Microsoft Outlook 1 3rd Feb 2004 08:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:02 PM.