FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Dedupe enhance x-ms-exchange-parent-message-id vs Message-ID by magikyyz · Pull Request #542 · imapsync/imapsync · GitHub

Dedupe enhance x-ms-exchange-parent-message-id vs Message-ID - #542

Open
magikyyz wants to merge 1 commit into
imapsync:masterfrom
magikyyz:exchange-parent-message-id
Open

Dedupe enhance x-ms-exchange-parent-message-id vs Message-ID#542
magikyyz wants to merge 1 commit into
imapsync:masterfrom
magikyyz:exchange-parent-message-id

Conversation

Copy link
Copy Markdown

Identical emails but sourced from alternate hosts (nicehost vs exchange) will not match and negate use of --delete2duplicates.

Example
nicehost

  • Message-ID: <20260825200001.B1C02A02CD@nicehost.com>
    exchange
  • Message-ID: <8ecf9cffdf25446e9d5aa3393e4f31fb@exchange.mail.host>
  • x-ms-exchange-parent-message-id: <20260825200001.B1C02A02CD@nicehost.com>

Change to sub header_construct allows X-MS-Exchange-Parent-Message-Id and Message-ID to match when both headers are used for comparing (--useheader Message-Id --useheader X-MS-Exchange-Parent-Message-Id)

gilleslamiral self-assigned this Aug 25, 2026

Copy link
Copy Markdown
Member

Well, is it always the case that Exchange change the message-id to a new one and signals the change with a new x-ms-exchange-parent-message-id header?
If not, when and why does it do it?

Copy link
Copy Markdown
Author

Always. In the environment triggering this, mailbox gets original copy (message-id) from one host and a copy via Exchange. Exchange may be doing a redirect(?) causing the oddness.

Link describes other observing same quirk.
https://learn.microsoft.com/en-us/answers/questions/4543688/rules-redirect-action-should-follow-mail-standards

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL