When any email is send with a Message-ID
header, then any replies to it include In-Reply-To
, naming that ID, and References
which can name a list of parent message ID's.
So email clients can use this information to construct threads when viewing a list of emails in threaded view.
My question is: Do all email clients (Outlook, Gmail, Exchange, etc) append In-Reply-To
field in email header when replying to any existing email?
I referred RFC 2822 but it says In-Reply-To
field is optional.
Though optional, every message SHOULD have a "Message-ID:" field.
Furthermore, reply messages SHOULD have "In-Reply-To:"
Example of In-Reply-To
email header:
First email:
Message-ID <foobar-1234-0@server.com>
Second email:
Message-ID <foobar-1234-1@server.com>
In-Reply-To: <foobar-1234-0@server.com>
References: <foobar-1234-0@server.com>
Third email:
Message-ID <foobar-1234-2@server.com>
In-Reply-To: <foobar-1234-1@server.com>
References: <foobar-1234-0@server.com> <foobar-1234-1@server.com>