Again: create item with Sent flag set

K

klemid

I'm again/still struggling with creating a new custom (!) item in the
inbox with the 'sent' set w/o sending it actually. I followed Dmitry's
advice to create it as a IPM.Post and changed the message class
afterwards. After setting a bunch of other properties this worked to
far. But now I'm again at a point this workaround hurts. When I try to
modify controls on the form this fails because the attached
FormDescription still has the message class IPM.Post. Additionally,
when I open the form, the compose layout is shown. However it should be
the read layout. So, which additional properties do I need to set to
let this fully work. I played with CDO (which allows to set the Sent
flag) but some missing stuff in Redemption prevents me to convert this
CDO item back to a Redemption (I don't remember exactly what this was)
w/o a security warning.
- Klemens
 
D

Dmitry Streblechenko

By default messages do not have any customization. Where does
FormDescription come from? If you only modify the controls *after* the
mesage class is reset to IPM.Note and the message is reopened,
FormDescription cannot possibly remember that the message used to be
IPM.Post.

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

klemid

I found another way: Create it directly as IPM.Note.MyForm and unset
the MSGFLAG_UNSENT flag in PR_MESSAGE_FLAGS.
- Klemens
 

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