Forum Discussion

Marcde's avatar
Marcde
Moderator
7 years ago
Solved

What is the registry value ClearUnreadNotification doing in detail?

Hello everyone,

does anyone have details about what this values is doing in detail?

I suspected that EV is simply setting PR_NON_RECEIPT_NOTIFICATION_REQUESTED and / or PR_READ_RECEIPT_REQUESTED property of an item in question to FALSE or removing the flags MSGFLAG_RN_PENDING and / or MSGFLAG_NRN_PENDING when it is creating a shortcut as a part of the archiving process (after the mentioned values have been set to 1 in the registry) but was not able to confirm this in my lab environment. However I also found the flag PR_REPLY_REQUESTED set to FALSE in some shortcuts. 

Can anyone shed some light onto this?

 

Thanks in advance

Marc

  • It clears the flag MSGFLAG_NRN_PENDING in the PR_MESSAGE_FLAGS property. SetReadFlag(CLEAR_NRN_PENDING) is the MAPI call.

    If the Registry value is set, the Archiving Task will clear this flag both when creating a shortcut and when deleting a shortcut.

     

    --Chris

9 Replies

  • It clears the flag MSGFLAG_NRN_PENDING in the PR_MESSAGE_FLAGS property. SetReadFlag(CLEAR_NRN_PENDING) is the MAPI call.

    If the Registry value is set, the Archiving Task will clear this flag both when creating a shortcut and when deleting a shortcut.

     

    --Chris

    • Marcde's avatar
      Marcde
      Moderator

      Thanks Chris. This is exactly what I was looking for. 

      But this means that after setting the value in the registry ALL shortcuts (archived prior to setting the value as well as after this) can be deleted without a message being sent, right?

      Thats strange as we do have an environment where unread items that were archived after setting this value can be deleted without a message sent but it seems that older ones archived prior to cannot be deleted without a message being sent. 

       

      Any idea in regards to this? 

       

      Regards

      Marc

      • ChrisLangevin's avatar
        ChrisLangevin
        Level 6

        That's a puzzle. I don't see anything in the code that would cause what you're describing. It looks like that setting should control the behavior for all shortcuts.

        I'd try a dtrace of ArchiveTask and look for the method name "ClearDeleteNotReadNotification" to see what's going on for items that suppress the NRN message and for items that don't suppress it. You should be able to find the following strings in the dtrace to help your investigation:

        "Not-Read-And-Deleted Notification mark found on message"

        "Not-Read-And-Deleted Notification mark cleared"

        That trace plus some MFCMAPI property inspection will probably be enough to make plain what's going on.

         

        --Chris

  • Hi Marc,

    If I recall correct: If an archived item has been archived while being unread, and the sender requested a read-receipt, deleting the shortcut would send a 'read' notification to the sender.

    Content

    DWORD

    0 - (Default) Send a notification to users who have deleted shortcuts to unread archived items.

    1 - Do not send a notification to users who have deleted shortcuts to unread archived items.

    Description

    For manually deleted shortcuts to unread archived items: specifies whether to send notifications to users who have requested read receipts.

    • Marcde's avatar
      Marcde
      Moderator

      Thanks Gertjan but I was aiming towards how this is technically achieved in the background.

      This information is well known but there are no technical details about this.