[python-win32] Fwd: Accessing Modification Time of an Outlook Mail in Python

Tim Roberts timr at probo.com
Tue Nov 25 18:41:17 CET 2008


venu madhav wrote:
>
> Hi all,
>       I am writing a small application which reads the contents of an
> Outlook Mail using python. I am able to read the contents, subject
> along with senders and receivers of a mail using MAPI objects. But may
> I know how can I get access to the "modification time" or the
> receiving time of an outlook mail in Python. For the others I have
> used message object of MAPI session.

http://msdn.microsoft.com/en-us/library/ms526861.aspx

You should be able to fetch message.TimeLastModified, but be aware that
email messages do not really have a "modification time".  The only thing
they have is the "Date:" header, which is really the creation time
(message.TimeCreated).

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list