I am working on a small script in VBA that will allow me to automatically forward messages, including encrypted ones.
The only problem I am facing is to remove the encryption programmatically.
I thought I could do it like this:
- Open message
- deselect encryption and sign options
- message
With this approach, I do not know how to get a link to the Encrypt and Sign buttons.
Here is the code that works for standard, unencrypted emails. I set this method as an "email rule" for all incoming messages:
Sub test_macro(MyMail As MailItem)
MyMail.Display
'Need some API here to access the decrypt button
MyMail.Recipients.Add "otheraddress@company.com"
MyMail.Recipients.Add "otheraddress2@company.com"
Item_Send (MyMail)
End Sub
Background
. Outlook (2003/2007/2010/etc), , , ( , , ).
, - , , , . , Outlook, API ?
POP-, , . , , , / , Outlook .
? !