Share via

X-MS-Exchange-Generated-Message-Source Header Logic

Samantis MR 1 Reputation point
2022-07-14T16:31:51.51+00:00

Hello!
We develop a custom Transport Agent. It's work according to the following logic:

  1. Drop message, make some manipulation with it
  2. Via EmailMessage class Create() this message again and submit it into pipeline

After that there is "X-MS-Exchange-Generated-Message-Source" in the message header with our agent pasted two times:

X-MS-Exchange-Generated-Message-Source: 'Our Agent', 'Our Agent'.

How can we prevent this behavior? How can we paste Our Agent one time, or not paste enything?
What is the logic of createing this label in "X-MS-Exchange-Generated-Message-Source" header?

Exchange | Exchange Server | Development

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.