none
Outlook MailItem - isReadOnly RRS feed

  • Question

  • Hi,

    is there any message flag on mailitem or the parent folder to check, if a message is read only. the only way i found out by now is to check mail.GetInspector.Caption.Contains.contains("readonly")?

    Kind regards, Josef


    Mache die Dinge so einfach wie möglich, aber nicht einfacher!


    • Edited by josef.auer Tuesday, April 11, 2017 11:28 AM
    Tuesday, April 11, 2017 10:56 AM

Answers

  • Hi,
    using MFCMAPI i found a property "PR_ACCESS" (DASL name http://schemas.microsoft.com/mapi/proptag/0x0FF40003). It contains a bitmask of flags indicating the operations available to the client for the object. Available Flags are: https://msdn.microsoft.com/de-de/library/office/cc979218

    Mache die Dinge so einfach wie möglich, aber nicht einfacher!

    • Marked as answer by josef.auer Wednesday, April 12, 2017 8:30 AM
    Wednesday, April 12, 2017 8:29 AM

All replies

  • Hello Josef,

    You can use the PropertyAccessor object (see the corresponding property of the MailItem class) to get the PR_MESSAGE_FLAGS (DASL name is http://schemas.microsoft.com/mapi/proptag/0x0E070003") property value. New items (that can be edited) have the MSGFLAG_UNSENT flag set. That means the message is still being composed. It is saved, but has not been sent. Typically, this flag is cleared after the message is sent.


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Tuesday, April 11, 2017 1:05 PM
  • Hi,
    using MFCMAPI i found a property "PR_ACCESS" (DASL name http://schemas.microsoft.com/mapi/proptag/0x0FF40003). It contains a bitmask of flags indicating the operations available to the client for the object. Available Flags are: https://msdn.microsoft.com/de-de/library/office/cc979218

    Mache die Dinge so einfach wie möglich, aber nicht einfacher!

    • Marked as answer by josef.auer Wednesday, April 12, 2017 8:30 AM
    Wednesday, April 12, 2017 8:29 AM