How to get MailItem Subject using Redemption::ISafeMailItem object

  • Thread starter Kavita Joshi via OfficeKB.com
  • 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.
 
D

Dmitry Streblechenko

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
 
K

Kavita Joshi via OfficeKB.com

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
 
D

Dmitry Streblechenko

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top