>>>>> "GW" == Ganz, Will <[EMAIL PROTECTED]> writes:

GW> This is a snippet of what I've gotten working so far:

GW> from win32com.client import Dispatch

GW> s=Dispatch("Mapi.Session")
GW> s.Logon()

GW> messages =
GW> s.Inbox.Folders("Production").Folders("RegionI").Folders("test").Messages

GW> msg = messages.GetFirst()
GW> while msg is not None:
GW>     if msg.Subject == "test02":
GW>         print msg.Sent
GW>         print "got message", msg.Sender.Name, msg.Subject, msg.Text
GW>     msg = messages.GetNext()

I can't seem to dig up the message object from the source (only a
quick attempt, though!) & don't have Mapi registered on my system, but
what I'd do here is add:

print dir(msg)

and then if anything looks date-ish, print it out, or do:
help(msg.Date)

Do all this from an interactive session (say, idle) so you have opportunity to
poke around.

-- 
Patricia J. Hawkins
Hawkins Internet Applications, LLC

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to