[spambayes-dev] RE: Accessing delivery time of an email message!

Mark Hammond mhammond at skippinet.com.au
Tue Nov 18 21:09:19 EST 2003


I'm not sure exactly what property you should use - there are a number of
time related properties for a message.  See dump_props.py, and fiddle with
the code there - this dumps all the date properties for a message.

Mark.

> -----Original Message-----
> From: Sanjay Darisi [mailto:sanjaydarisi at cox.net]
> Sent: Tuesday, 18 November 2003 1:14 PM
> To: spambayes-dev at python.org; mhammond at skippinet.com.au
> Subject: Accessing delivery time of an email message!
>
>
>
> If I want to access the time stamp on the email (Outlook), which
> property should I use? Is it PR_DELIVER_TIME that I need to
> use? It's a
> PT_SYSTIME type,  So the documentation says that it is pyTime object.
> So, I tried using time.ctime(int(deliverytime))  and it complains
> ValueError: unconvertible time
>
> This is what i've done,
>
> In SB\Outlook2000\msgstore.py
>
> in class MAPIMsgStoreMsg,  I added PR_DELIVER_TIME to
> message_init_props
> . And
>
> tag, deliverytime = prop_row[8]
>
> self.deliverytime = deliverytime
>
> And at the end, in the test() function
>
> for msg in folder.GetMessageGenerator():
>     print time.ctime(int(msg.deliverytime))
>
> When I execute msgstore.py at the command prompt, it says ValueError:
> unconvertible time.  Am I missing anything obvious? How can I
> access the
> sent/delivery time of an email message in outlook?
>
> Thank you in advance,
> Sanjay.
>
>




More information about the spambayes-dev mailing list