I have problem with change the sent property of mail, because the property is read-only and I need to change it from the level of vba.
The problem appears after sent th
I resolved the problem with not very tidy way. I changed the registry key DelegateSentItemsStyle to 0 and when I did it, the sent mails went to my personal sent Items folder. Then I just move the mails to shared mailbox.
On the low (Extended MAPI) level, send/unsent status (MSGFLAG_UNSENT
bit in the PR_MESSAGE_FLAGS
property) can only be changed before the item is saved for the very first time.
Outlook Object Model is subject to the same limitation of course, and the only way to create an item in the sent state is to create a PostItem
object - it is created in the sent state. You will then need to change the message class back to IPM.Note
and remove the icon related properties to make sure the item looks right.
Redemption lets you change the item's state (RDOMail.Sent
is read/write until the first call to Save).
back to your particular problem, you need to figure out why the items is left in the folder in the unsent state, not try to "fix" it.