[python-win32] PySBinaryArray??

Aubin LaBrosse AubinL at netpolarity.com
Wed Jun 5 06:16:52 CEST 2013


Hello, List,

I'm new to pywin32 and have been able to use it quite sufficiently with the help of the internet and some (rather rudimentary, I admit) knowledge of the windows api.  I've been able to do some quite clever things with HTML on the windows clipboard and the Extended MAPI support.  However I am stumped on one thing, which I would have imagined would be rather easy to do somehow but just can't seem to figure it out.  I have used Extended MAPI to open the outlook outbox, create, and send an email message.  Now I want to move that message from the outbox to the sent items folder, as outlook itself would do. Without doing so, it simply sits in the outbox, or is sent and deleted if I set the PR_DELETE_AFTER_SUBMIT (apologies if that's not the exact name, doing this from memory as I write this email quickly) property flag

 So anyway, there exists PyIMAPIFolder.MoveMessages - I have a python reference to a PYIMessage object that I would like to move, but the first parameter to MoveMessages is what appears to be called a PySBinaryArray which, all the documentation I can find on it essentially says is a 'list of strings containing binary data'

What binary data, exactly? The body of the message?  Some other message identifier or property tag which must be used to indicate which message is to be moved? Something else entirely?  And even if I knew, how the heck do I create the proper PySBinaryArray object with which to pass in?!

This API is so obtuse sometimes (I get that that's microsoft's fault, not python's - LOL )

Any help/pointers/tips would be MOST appreciated - and thanks in advance for the time!

Please CC directly on all replies, as I am not subscribed to the list.

Thank you!

-Aubin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20130604/8441cb2b/attachment-0001.html>


More information about the python-win32 mailing list