A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how to extract PST file to html or RTF file



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 9th 07, 02:41 AM posted to microsoft.public.outlook.program_addins
KAKA
external usenet poster
 
Posts: 29
Default how to extract PST file to html or RTF file

I wanna fo some development on PST file, eatract PST file to html ro RTF
file, and can get the sender address, could you show me a way ? Thanks.
Ads
  #2  
Old October 9th 07, 05:48 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default how to extract PST file to html or RTF file



Not sure what you really want to accomplish. The pst file contains all your
all Outlook messages (e-mails, contacts, tasks etc.). You cannot create one
HTML file from that, but you have to save each single message as an HTML
file.

This loops through your Inbox and saves every MailItem as an HTML file, it
also prints the sender's address into the debug window:

Dim obj as Object
Dim F as Outlook.MapiFolder
Dim Items as Outlook.Items

Set F=Application.Session.GetDefaultFolder(olFolderInb ox)
Set Items=F.Items
For Each obj in Items
If TypeOf obj Is Outlook.MailItem Then
Debug.Print obj.SenderEMailAddress
obj.SaveAs "c:\" & obj.Subject & "-" & Format(obj.ReceivedTime,
"yyyymmdd-hhnnss")
Endif
Next

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Mon, 8 Oct 2007 18:41:00 -0700 schrieb KAKA:

I wanna fo some development on PST file, eatract PST file to html ro RTF
file, and can get the sender address, could you show me a way ? Thanks.

  #3  
Old October 10th 07, 08:53 AM posted to microsoft.public.outlook.program_addins
KAKA
external usenet poster
 
Posts: 29
Default how to extract PST file to html or RTF file

Thanks for your reply.
I wan to extract all the emails, contact... in a PST file to html or rtf,
including the attachment (only rtf file can contain atachment).
Not in Outlook.
I am using Outlook.



"Michael Bauer [MVP - Outlook]" wrote:



Not sure what you really want to accomplish. The pst file contains all your
all Outlook messages (e-mails, contacts, tasks etc.). You cannot create one
HTML file from that, but you have to save each single message as an HTML
file.

This loops through your Inbox and saves every MailItem as an HTML file, it
also prints the sender's address into the debug window:

Dim obj as Object
Dim F as Outlook.MapiFolder
Dim Items as Outlook.Items

Set F=Application.Session.GetDefaultFolder(olFolderInb ox)
Set Items=F.Items
For Each obj in Items
If TypeOf obj Is Outlook.MailItem Then
Debug.Print obj.SenderEMailAddress
obj.SaveAs "c:\" & obj.Subject & "-" & Format(obj.ReceivedTime,
"yyyymmdd-hhnnss")
Endif
Next

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Mon, 8 Oct 2007 18:41:00 -0700 schrieb KAKA:

I wanna fo some development on PST file, eatract PST file to html ro RTF
file, and can get the sender address, could you show me a way ? Thanks.


  #4  
Old October 11th 07, 06:14 AM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default how to extract PST file to html or RTF file


Here's a sample for how to loop through every folder:
http://www.vboffice.net/sample.html?...owitem?pub= 6

Additionally, for each item you need to loop through its Attachments
collection.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 10 Oct 2007 00:53:01 -0700 schrieb KAKA:

Thanks for your reply.
I wan to extract all the emails, contact... in a PST file to html or rtf,
including the attachment (only rtf file can contain atachment).
Not in Outlook.
I am using Outlook.



"Michael Bauer [MVP - Outlook]" wrote:



Not sure what you really want to accomplish. The pst file contains all

your
all Outlook messages (e-mails, contacts, tasks etc.). You cannot create

one
HTML file from that, but you have to save each single message as an HTML
file.

This loops through your Inbox and saves every MailItem as an HTML file,

it
also prints the sender's address into the debug window:

Dim obj as Object
Dim F as Outlook.MapiFolder
Dim Items as Outlook.Items

Set F=Application.Session.GetDefaultFolder(olFolderInb ox)
Set Items=F.Items
For Each obj in Items
If TypeOf obj Is Outlook.MailItem Then
Debug.Print obj.SenderEMailAddress
obj.SaveAs "c:\" & obj.Subject & "-" & Format(obj.ReceivedTime,
"yyyymmdd-hhnnss")
Endif
Next

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:

http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Mon, 8 Oct 2007 18:41:00 -0700 schrieb KAKA:

I wanna fo some development on PST file, eatract PST file to html ro RTF
file, and can get the sender address, could you show me a way ? Thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
extract data for .pst file sans outlook [email protected] Outlook - General Queries 7 May 21st 07 01:10 AM
can I extract emails from old PST file? Dan The Man Outlook - General Queries 5 March 2nd 07 11:29 PM
How to extract multiple MIME/base64 inline parts from a *.txt file ? Tobias Merler Outlook - General Queries 0 September 5th 06 02:09 PM
Is it possible to Extract IP Address from the message headers of E-Mails in .PST file. Niks Outlook - General Queries 3 April 24th 06 02:12 PM
Is it possible to Extract IP Address from the message headers of E-Mails in .PST file. Niks Outlook - General Queries 0 April 16th 06 01:12 AM


All times are GMT +1. The time now is 08:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.