Re: [python-win32] mapi - writing to PR_BODY

2009-02-15 Thread Christian K.
Christian K. wrote: > def TextToStream(mapi_object, text): > prop_id = PR_BODY_A > stream = mapi_object.OpenProperty(prop_id, > pythoncom.IID_IStream, > 0, mapi.MAPI_MODIFY) > print stream.Stat(0) > print st

Re: [python-win32] mapi - writing to PR_BODY

2009-02-15 Thread Christian K.
Mark Hammond schrieb: On 14/02/2009 12:56 AM, Christian K. wrote: So write seems to work as expected (reporting the right number of bytes) but I have no clue *where* the data is written to. The mail body stays completely unaffected. I guess step 1 would be to see if you can re-read it - ie, i

Re: [python-win32] mapi - writing to PR_BODY

2009-02-14 Thread Mark Hammond
On 14/02/2009 12:56 AM, Christian K. wrote: So write seems to work as expected (reporting the right number of bytes) but I have no clue *where* the data is written to. The mail body stays completely unaffected. I guess step 1 would be to see if you can re-read it - ie, is the data not getting

Re: [python-win32] mapi - writing to PR_BODY

2009-02-13 Thread Christian K.
Mark Hammond schrieb: On 13/02/2009 2:35 AM, Christian K. wrote: Mark Hammond schrieb: tuations, 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 ma

Re: [python-win32] mapi - writing to PR_BODY

2009-02-13 Thread Christian K.
Mark Hammond wrote: > On 13/02/2009 2:35 AM, Christian K. wrote: >> Mark Hammond wrote: >> 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

Re: [python-win32] mapi - writing to PR_BODY

2009-02-12 Thread Mark Hammond
On 13/02/2009 2:35 AM, Christian K. wrote: 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

Re: [python-win32] mapi - writing to PR_BODY

2009-02-12 Thread Christian K.
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 info

Re: [python-win32] mapi - writing to PR_BODY

2009-02-08 Thread Mark Hammond
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. Cheers, Mark ___ python-win32 mailing list python-

[python-win32] mapi - writing to PR_BODY

2009-02-08 Thread Christian K.
Hi, according to http://msdn.microsoft.com/en-us/library/cc839695.aspx writing to the PR_BODY property of a mapi message should be done more or less like the following: def TextToStream(mapi_object, text): prop_id = PR_BODY_A stream = mapi_object.OpenProperty(prop_id,