I’m building a multi-provider email client that tracks sent/replied/forwarded messages. For Gmail, I can easily exclude specific messages from my tracking mechanism by adding a custom header (e.g., X-CRM-IGNORE) when sending/replying/forwarding via Gmail APIs.
Example:
X-CRM-IGNORE: true
This works perfectly and doesn’t break the thread.
However, for Outlook / Microsoft Graph API, I cannot find any way to add custom headers when replying or forwarding messages. Graph allows specifying recipients, body, attachments, etc., but not arbitrary Internet headers.
I need a way to mark certain messages (sent/replied/forwarded via Graph API) so they can be excluded from tracking.
This must not break the conversation/threading in Outlook or Graph.
Ideally, it should behave similar to Gmail’s X-CRM-IGNORE.
Questions:
Is there any way to add custom Internet headers (like X-CRM-IGNORE) when sending, replying, or forwarding messages via Microsoft Graph?
If not, what are the recommended alternatives to mark these messages so I can still identify and skip them later? (e.g., categories, extensions, message properties, etc.)