Skip to content

msg.Sender.Name paired with a wrong email #483

@tstojecki

Description

@tstojecki

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

Image Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions