Re: [python-win32] PyIMAPIProp.GetPropList() and Py_None ref count

2015-08-25 Thread Nick Czeczulin
On 8/24/2015 2:10 AM, Mark Hammond wrote: On 13/08/2015 8:20 PM, Nick Czeczulin wrote: I noticed that every call to PyIMAPIProp.GetPropList() causes the ref count for Py_None to increase by one. Can someone comment on whether the following patch seems correct, or if more might be needed? At

[python-win32] PyIMAPIProp.GetPropList() and Py_None ref count

2015-08-13 Thread Nick Czeczulin
I noticed that every call to PyIMAPIProp.GetPropList() causes the ref count for Py_None to increase by one. Can someone comment on whether the following patch seems correct, or if more might be needed? Thanks, -nick --- a/com/win32comext/mapi/src/mapilib.i +++ b/com/win32comext/mapi/src/mapilib

Re: [python-win32] Possible memory leak in pywin32

2015-01-21 Thread Nick Czeczulin
On 1/16/2015 2:43 AM, Kapil Dolas wrote: I am using pywin32's mapi module to read data from PSTs. I have shared my program which reads email and attachment datahere (http://pastebin.com/2AXy3BVH). Currently, program is not storing any of the read data. But, still

Re: [python-win32] How to set value for multi-valued property using mapi?

2015-01-04 Thread Nick Czeczulin
Kapil Dolas wrote: > Thank you for replying. I tried example given by you and it worked. All MV > properties are working in the > same way, except ones of type PT_MV_BINARY. Can you give me example for > setting PT_MV_BINARY values? I think you will need to apply this patch for PT_MV_BINARY to

Re: [python-win32] How to set value for multi-valued property using mapi?

2014-12-30 Thread Nick Czeczulin
Kapil Dolas wrote: > I want to set multiple values for multi-valued property using SetProps. > SetProps list > of tuples of tag and value as argument, where value should be string or > unicode. > How to set multiple values for multi-valued property in this case? Should I > convert list > of valu