How to get MailItem Subject using Redemption::ISafeMailItem object

  • Thread starter Thread starter Kavita Joshi via OfficeKB.com
  • Start date Start date
K

Kavita Joshi via OfficeKB.com

Hi,

I have created outlook addin in VC6 ATL/COM. My add handles newmail event.
I want to replace all outlook objects with Redemption safe objects.
In that process when I tried replacing Outlook::_MailItem with Redemption::
SafeMailItem.
It is not giving all the information which outlook object supports.
I need to read subject of new email, but that property is not exposed by
redemption::ISafeMailItem.

Can anybody help me with this? Which object I need to use and how
implementation will work.
Sample code will be more of help.

Thanx in advance,

Kavita

P.S. I hope I am posting the query to correct forum.
 
NewMail event in Redemption passes in an instance of the
Redemption.MessageItem object (which can be used standalone and does expose
the Subject property) , not Redemption.SafeMailItem, which is designed to be
used with an Outlook Object Model object (assigned to the Item property) and
only exposes properties and methods blocked by OOm (Subject property is not
one of them).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanx for the reply Dmitry.

I have one more question, I hope I can continue same thread for that.

I am creating folder named "REPORT" through my addin.
I want to stop user from deleting that folder. What properites I need to set
for that?

thanx in advance...

regards,
Kavita
 
I don't think you'll have much luck with this: Outlook only prevents users
from deleting the default folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top