-
-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Describe the bug
The SenderSmtpAddressAlternate property (0x5D0A) added in PR #136 returns the mailbox owner's email address instead of the actual message sender. In our case, sender's Name was properly set while sender's Email was set to the mailbox owner .
To Reproduce
Steps to reproduce the behavior:
This mailbox came from Microsoft Purview export. While I can't share it, I've included the screenshots below showing that while Microsoft Copilot was the actual sender, this fallback field (0x5D0A) was set to an email of a mailbox owner.
Expected behavior
Return the actual sender's email address in msg.Sender.Email, not the mailbox owner's email address.
Do not comingle senders' names with a mailbox owner email.
Screenshots
Additional context
#136
I'd be happy to submit a PR to revert this change, though I understand this may have worked in other scenarios/context. There is a real risk (as we have seen) of cominglening names with emails.