PR_MESSAGEFLAGS & Compose/Read - Inspector

S

Sebastian S.

Hello out there!

Is there any chance of setting the PR_MESSAGEFLAGS property (deleting
MSGFLAG_UNSENT) for an object? What I've read it should be possible just
before the first savechanges call. Is this for sure? Because it doesn't seem
to work here. C++ mapi code in a DLL.

The mainproblem is, that i use the display() method in an Add-In (2007, c#,
vsto3) which makes use of that DLL for item creation and manipulation.
Calling display() of the DLL-created Outlook.MailItem brings up an
compose-inspector but what I want is an read-inspector...

Cheers,
Sebastian
 
D

Dmitry Streblechenko

Outlook will not see your changes.
Do you create the message using OOM or MAPI?

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

Sebastian S.

Thanks for the reply.

Item creation with MAPI then display() with OOM.
Any idea how i can get a "read-inspector"?

Cheers,
Sebastian
 
D

Dmitry Streblechenko

Did you remove MSGFLAG_UNSENT bit from the PR_MESSAGE_CLASS proepty
immediately after creating the message and before saving it for the very
first time?

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

Sebastian S.

Yes.
But I checked again... and solved the DEVELOPER_IQ_ERROR.

So all I needed was a "Dimitry said to" ;)

Thanks for your effort and sorry for stealing your time.

Cheers,
Sebastian
 

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