Mark Hammond schrieb:
On 8/02/2009 7:06 PM, Christian K. wrote:
write should return the number of bytes written but it returns None
here.

It appears Roger fixed this on 2007/08/07 and the fix was in builds 211 and 212.

I suppose I am using a recent build - where can I find the version information?

In fact I am currently not concerned that write returns None but that the code snippet shown before does not change the mail body at all.

And I had situations, where write indeed did return the number of bytes written, again without any change on the body. My understanding of mapi is very basic but this seems to have to do with the access method to the mail body, i.e. whether the body should be retrieved via GetProp or via streaming.

In the end I would like to be able the mail body of each recieved mail, i.e. I catch the newmail event, read the mail body and want to write it back. If there are any other ideas how to achieve that, I would be grateful to hear about them.

Christian

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to