Re: [python-win32] mail Sensitivity doesn't work as expected(can not set the sensitivity label)

2021-11-17 Thread Tim Roberts
Victor Liu wrote: Gratitude to all the work of the library. I am trying to use it to send out some emails, but I have encountered this issue which might be a bug. It can be represented by this minimum working example. It might perhaps be a bug, but it is not a bug in Python.  All you're do

Re: [python-win32] mail Sensitivity doesn't work as expected(can not set the sensitivity label)

2021-11-17 Thread Steven Manross
As best I remember, Microsoft considers the programming of Mail tasks (and most Outlook automation) as a security risk/issue, and limits your access to certain parts because so many people (malware writers) wrote stuff to programmatically abuse Outlook for unsavory (Evil?!?) purposes. However,

Re: [python-win32] returning #N/A to Excel via UDF

2021-11-17 Thread Steven Manross
While I don’t have any useful suggestions here… I thought I would link the thread I found in the xlwings github thread that the author looks to have been working on with them already. https://github.com/xlwings/xlwings/issues/776 HTH Steven From: python-win32 On Behalf Of Sébastien de Mente

[python-win32] mail Sensitivity doesn't work as expected(can not set the sensitivity label)

2021-11-17 Thread Victor Liu
Hi guys, Gratitude to all the work of the library. I am trying to use it to send out some emails, but I have encountered this issue which might be a bug. It can be represented by this minimum working example. import win32com.client outlook = win32com.client.Dispatch('outlook.application') mail

[python-win32] returning #N/A to Excel via UDF

2021-11-17 Thread Sébastien de Menten
I would like to return #N/A values to excel via an UDF written in python (via xlwings) Returning a `VARIANT(pythoncom.VT_ERROR, 2042)` from the UDF results in an empty cell. Is there within pywin32/pythoncom an equivalent of VBA `CVErr(xlErrNA)` ? Sébastien ___