🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2328

Re: Retrieve Date from outlook msg-file

#2328
From: Koen
Date: Tue, 13 Mar 2007 08:53
29 lines
1952 bytes
Remy Lebeau (TeamB) wrote:

> 
> 
> Soundsl like you are not looking at the actual message data that was
> downloaded, only at the stream tags that wrap the data.  You need to
> find the stream that contains the original message headers and then
> grab the date/time from that data.
> 


Thanks for the info. I have found out that some of the messages indeed 
contain a stream with the original message headers (the type is 
PR_TRANSPORT_MESSAGE_HEADERS). However, internally, we use an Exchange-
server, and an internal mail does not contain that stream. Is there any way 
I can retrieve the date in that case?  
I have found a stream with PR_MESSAGE_SUBMISSION_ID as type, and the 
contents seams to contain the date: 
c=BE;a= ;p=Exchange;l=W2003EX-070306151740Z-1672
but I'm not sure it always contains it.

I have another question: to know the type of the message I have to parse 
the pwcsName-member of the tagSTATSTG structure (Take the 8 last characters 
to read a hex-number). There doesn't seem to be a member to define the 
type. Is this the correct way or am I something missing?

regards,

Koen
Technical Details
Message-ID: <Xns98F25A8873411koenhacom@207.105.83.66>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <Xns98F1A7F081730koenhacom@207.105.83.66> <45f583fc$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f1315aab5dcfc57c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Retrieve Date from outlook msg-file
From: Koen <koen@ha.com>
References: <Xns98F1A7F081730koenhacom@207.105.83.66> <45f583fc$1@newsgroups.borland.com>
Message-ID: <Xns98F25A8873411koenhacom@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 81.246.59.163
Date: 13 Mar 2007 00:53:12 -0800
X-Trace: newsgroups.borland.com 1173772392 81.246.59.163 (13 Mar 2007 00:53:12 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail