win32com: Accessing MAPIOBJECT

Mark Hammond mhammond at skippinet.com.au
Sat Mar 15 18:16:10 EST 2003


Grant Edwards wrote:
> In article <Xns933CB4DE526C9usenetprettyhipprogr at 24.25.0.106>, Joel wrote:
> 
> 
>>I've been tinkering with win32com in the hopes of being able to convert 
>>some of the mail in some of my Outlook folders into a mbox for use with 
>>SpamBayes. I've figured out how to access them messages, but they seem to 
>>only have the interfaces that Outlook itself needs: Body, Subject, etc, and 
>>not the full headers for example.  
> 
> 
> I use a python program that fetches my mail from Outlook, but I
> never figured out how to grab the headers.  If you do find out,
> I'd be curious about how it's done.

You use the MAPI property PR_TRANSPORT_MESSAGE_HEADERS.  However, this 
only works for "internet" mail - mail that never saw the internet (eg, 
internal Exchange mail) does not have this property.

Mark.






More information about the Python-list mailing list