Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 25th, 2003, 07:32 AM
apatit_ru apatit_ru is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Russia, Murmansk region
Posts: 6 apatit_ru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to apatit_ru Send a message via AIM to apatit_ru Send a message via Yahoo to apatit_ru
How to read .msg file MS Outlook created via Delphi?

Hello there!

I have a trouble: I need to read .msg file MS Outlook created (i.e., by dragging and dropping the mail message header to any folder window, this file appears with the same name like the subject of the mail message) via Delphi. How can I do it by standart methods (maybe, using TOutlookApplication OLE server)? Ultimately I need to parse this .msg file to get all RFC-headers information.

Any suggestions would be appreciated!
Thanks in advance and sorry please my poor English.

Reply With Quote
  #2  
Old July 27th, 2003, 12:00 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
I'd say you have 2 options.
In Delphi, there is probably a mail handling class that lets you maniuplate mail objects. This should be able to read the file.
The other option (not as easy), read the RFC (http://www.tac.nyc.ny.us/mail/rfc-index.html - i believe the SMTP RFC is 821) on mail headers, and write your own handler.

Reply With Quote
  #3  
Old July 28th, 2003, 02:15 AM
apatit_ru apatit_ru is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Russia, Murmansk region
Posts: 6 apatit_ru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to apatit_ru Send a message via AIM to apatit_ru Send a message via Yahoo to apatit_ru
Quote:
Originally posted by stumpy
I'd say you have 2 options.
In Delphi, there is probably a mail handling class that lets you maniuplate mail objects. This should be able to read the file.
The other option (not as easy), read the RFC (http://www.tac.nyc.ny.us/mail/rfc-index.html - i believe the SMTP RFC is 821) on mail headers, and write your own handler.


I know this. But MS Outlook (MS Office part) .msg files are not the simple RFC message files. You coudn't read it by simple mail class. Try to make this action (drag and drop the massage onto the Windows Desktop) and try later to view this by simple preview. It looks like any binary file .

By the way, which mail class do u mean: from Indy or from FastNet?

Reply With Quote
  #4  
Old July 28th, 2003, 03:31 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Posts: 2,056 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 44 m 22 sec
Reputation Power: 0
Ahh - right you are!

Does Delphi have access to COM's? If so, then check out this site:
http://www.zuggsoft.com/zmud/comscript.htm

Reply With Quote
  #5  
Old July 28th, 2003, 03:51 AM
apatit_ru apatit_ru is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Russia, Murmansk region
Posts: 6 apatit_ru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to apatit_ru Send a message via AIM to apatit_ru Send a message via Yahoo to apatit_ru
Quote:
Originally posted by stumpy
Ahh - right you are!

Does Delphi have access to COM's? If so, then check out this site:
http://www.zuggsoft.com/zmud/comscript.htm


Thank you, I will try this.

Reply With Quote
  #6  
Old December 10th, 2003, 03:40 AM
AzCoder AzCoder is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 AzCoder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking Check this out

Check out this DLL to read .msg files - may save you some time.

http:\\URL

C

Reply With Quote
  #7  
Old December 10th, 2003, 07:04 AM
apatit_ru apatit_ru is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Russia, Murmansk region
Posts: 6 apatit_ru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to apatit_ru Send a message via AIM to apatit_ru Send a message via Yahoo to apatit_ru
Re: Check this out

Quote:
Originally posted by AzCoder
Check out this DLL to read .msg files - may save you some time.

http:\\http://www.automation-specialists.c...s\msgreader.htm

C


Thanks, but I'd like to get something is free of charge.

Reply With Quote
  #8  
Old May 1st, 2006, 12:01 AM
msgexpert msgexpert is offline
Banned
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 1 msgexpert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 35 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
MSG Files:

Priasoft has several MSG related products. http://www.priasoft.com

In particular, they have a MSG file parsing library that gives developers access to all the properties of a .msg file, without outlook.

They also have an export library that works with the MSG library for exporting msg files to other formats, like PDF, TIF, and HTML.

For PST files, they have a couple of command line tools that allow extraction of messages to MSG, again without requiring outlook, and it supports both ANSI and UNICODE pst files. There is also the reverse, a MSG to PST utility.

They also have a viewer product that looks very similar to outlook 2003 with regards to the User Interface. The viewer can view, search, print, and export msg files.

Of recent they released a MSG to XML converter tool. I think the like is http://www.priasoft.com/downloads/msg/installmsg2xml.exe

Lastly, they just release a free ViewOnly viewer here: http://www.priasoft.com/msgview.exe




Regards,
the MSG Guru, Eriq VanBibber

ALT160 - Do you see me?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > How to read .msg file MS Outlook created via Delphi?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap