|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Quote:
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? |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Quote:
Thank you, I will try this. |
|
#6
|
|||
|
|||
|
Check out this DLL to read .msg files - may save you some time.
http:\\URL C |
|
#7
|
|||
|
|||
|
Re: Check this out
Quote:
Thanks, but I'd like to get something is free of charge. |
|
#8
|
|||
|
|||
|
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? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > How to read .msg file MS Outlook created via Delphi? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|