Article View: borland.public.cppbuilder.nativeapi
Article #2305Retrieve Date from outlook msg-file
From: Koen
Date: Mon, 12 Mar 2007 16:29
Date: Mon, 12 Mar 2007 16:29
17 lines
1346 bytes
1346 bytes
Hi, I am trying to read the contents of an outlook msg-file on disk. I do this by using the StgOpenStorage to create an IStorage interface, and then using OpenStream/OpenStorage to read the properties. (As adviced by Gambit in atozedsoftware.indy.general) This seems to work properly, and I can retrieve the Sender/Subject/Body/... of the email. However I am not able to find the date when the email is sent. None of the Streams in the storage have the PT_SYSTIME datatype, and none have a "Time-tag" as defined in mapitags.h (for example PR_CLIENT_SUBMIT_TIME). But when I open the msg-file in Outlook, the date the email is sent is shown. How can I retrieve this date? regards, Koen
Technical Details
Message-ID:
<Xns98F1A7F081730koenhacom@207.105.83.66>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f1315aab5dcfc57c,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Retrieve Date from outlook msg-file From: Koen <koen@ha.com> Message-ID: <Xns98F1A7F081730koenhacom@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 81.246.59.163 Date: 12 Mar 2007 08:29:46 -0800 X-Trace: newsgroups.borland.com 1173713386 81.246.59.163 (12 Mar 2007 08:29:46 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail