Share via

How to fix Public Folder emails with MSGFLAG_UNSENT set to True

Mark MacLachlan 20 Reputation points
2026-06-24T20:07:04.4766667+00:00

We were just trying to migrate away from public folders to M365 groups and it was a bit of a disaster. After rolling things back we are now seeing some but not all messages show up as drafts, they appear to be forwarding to our own email address and have a send button. I have tracked it down to
Property: PR_MESSAGE_FLAGS (tag 0x0E070003)

  • Offending bit: MSGFLAG_UNSENT (0x8)
  • Root cause: Exchange Online sets this bit on messages delivered to mail-enabled public folders that passed through a transport modification (such as the External Email Banner disclaimer rule) or ATP re-delivery. This is a known Exchange Online limitation.
  • Confirmed behavior: Exchange Online does not allow clients to clear this bit after delivery via EWS, MAPI, or Outlook COM. Any update call returns success but the server reverts the value.
  • Impact: Outlook renders affected messages in compose mode with a Send button in both the open window and reading pane.
  • Reference path for Microsoft support: Exchange Online → Mail-enabled public folders → MSGFLAG_UNSENT set on delivered items, not modifiable post-delivery.

I have unfortunately been unable to change the value of those flags and new items are constantly coming in randomly with the same issue. Can anyone suggest a fix?

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

Answer accepted by question author

Teddie-D 18,620 Reputation points Microsoft External Staff Moderator
2026-06-25T00:30:41.15+00:00

Hi @Mark MacLachlan

Thank you for sharing your findings.

Based on the information you've provided, it does appear that the affected messages are being presented in the mail-enabled Public Folder with the MSGFLAG_UNSENT (0x8) already set, likely as part of the delivery or processing pipeline

The more important question is why some messages end up with that flag while others do not.

Since you've already confirmed that attempts to clear the flag are unsuccessful, there does not appear to be a supported administrator-side method to correct this for existing items.

Instead, I would suggest focusing on identifying differences in the message processing path. In particular, look for any common factors among the affected messages, such as:

  • Mail flow rules (especially disclaimers / banners that rewrite the message body)
  • Other transport rule actions that modify messages (e.g., subject prepend, header changes)
  • Defender for Office 365 processing (Safe Attachments)

As a test, if possible, try excluding the affected Public Folder from disclaimer or banner rules and compare newly delivered messages with those that follow different mail flow paths.

If the issue only occurs when messages are modified during transport, this would indicate that the behavior is tied to the delivery and processing pipeline rather than the Public Folder itself.

Unfortunately, if Exchange Online continues to store or reapply the UNSENT flag during delivery, there may not be an administrator-controlled way to repair existing items. In that case, the next step would be to open a support case with Microsoft so they can trace the message processing path and confirm what is setting the flag.

As we're not Microsoft Support, this is a user-to-user forum, we cannot verify whether this is a confirmed service issue. However, your findings strongly suggest that the flag is being introduced during message processing in Exchange Online rather than by any post-delivery action.


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.