Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3671038
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:26:17+00:00 2026-05-19T02:26:17+00:00

We have written an Outlook add-in in C#, that appends a custom header to

  • 0

We have written an Outlook add-in in C#, that appends a custom header to outgoing messages.

This add-in has to use a library called Redemption to bypass Outlook’s security to modify the headers, and this is all working great.

Our problem lies when sending outgoing mail through an exchange server. We use the additional header as such:

  • Add a References header with an email address that includes an ID for tracking with our system.
  • This is a standard email header that all mail clients should pass on when replying to messages. So replying to a message will automatically keep the new message tracked.

All of this works just fine if you send an email from an IMAP account setup in Outlook such as GMail.

Problem is, if you send mail via an Exchange account, the Exchange server overwrites the References header and uses it’s own proprietary headers: Thread-Index and Thread-Topic. Email standards suggest to use References and In-Reply-To headers. See this link on this issue.

Does anyone know a way around this? Some algorithm to gain us the following:

  • Add a header (of any name or kind) to emails that includes a 10-digit ID and 3 letter prefix
  • Replying to this email from all (or most) mail clients preserves the custom header
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:26:18+00:00Added an answer on May 19, 2026 at 2:26 am

    I think the following algorithm is going to solve our issue:

    • Our Outlook add-in will set the References and an arbitrary X- header
    • Our mail filter will look for References, if found use it (if outgoing mail server was Exchange, it will not be present)
    • If our mail filter finds the arbitrary X- header and a Thread-Index, it will store the data found in the X- header.
    • Later if the email is replied-to several times, the mail filter will use the Thread-Index to look up the past info to keep the email tracked.

    For those wanting to know internals of the Thread-Index header, it is a Base64 encoded string. The first 22 bytes are the original unique portion and each reply adds an additional 5 bytes on to it. We only use the first 22 bytes to identify the email.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a class that extends JPanel. Is it possible to use this
We have written an add-on for Outlook that files emails into our CRM system.
I have an application written in Delphi that adds / updates contacts in outlook.
I have written a class in python that implements __str__(self) but when I use
I have written a program that uses qhttp to get a webpage. This works
I have written a C++ app that sync's Outlook emails with our central server
I have an application written in C# that uses Outlook Interop to open a
Have written all the code in a silverlight class library (dll) and linked this
I have written this code to view the unread items in my outlook mail
I have inherited an Outlook 2003 COM add-in written using VB6 (note: NOT VB.NET).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.