[python-win32] Adding attachments to extended MAPI messages
by Shayan Raghavjee other posts by this author
Sep 28 2004 6:12AM messages near this date
Re: [python-win32] DDE Timeouts
|
[python-win32] XP sp2 Problem?
Hi,
I'm trying to extend David Fraser & Stephen Emslie's extended MAPI code
to include attachments, but with not much success. It looks like
CreateAttachment returns a list with an attachment number and a pyAttach
object. I've been trying to add the desired properties to the pyAttach
object using it SetProps method, as it's done in the message itself.
In the end, I get an unnamed attachment, with some of the data I put in,
except the <cr> character's been changed to something else, (But that
may be because of the way I'm reading the file perhaps?) All the other
properties seem to be ignored, and aren't there if I examine the message
with something like OutlookSpy.
I've included the test code I'm trying, does anyone have any ideas?
Thanks,
Shayan Raghavjee
St. James Software
Attachments:
mapitest.py
unknown1
unknown2
|