How to code to group email in conversations

... like gmail!

Now itโ€™s easy enough to combine them when the object is (almost) the same with additional prefixes (re :, re: re:, ...) is possible

but you can include additional people when answering, etc., and they appear in the original โ€œconversationโ€ stream

I did not look at the headlines at the time, but wondered if there were any additional X - ?????? headers that are used or are part of any RFC / convention somewhere

any code example that already does this would be great!

+7
source share
3 answers

Well, it all depends on how you save some data.

The email header already offers you:

Message-ID: also an automatically generated field; used to prevent multiple delivery and for reference in In-Reply-To: (see below).

In-Reply-To: Message-ID of the message for which this is the response. Used to bind related messages. This field applies only to response messages.

What can be used to link subsequent letters in a conversation group.

+8
source
+7
source

I am sure that most programs embed metadata in a message so that it can be tracked to the original message when a response is returned. Something else would be like guessing, and, as you point out, only the subject and // is not going to crop it.

Outlook, for example, embeds the stream index and message identifier in the metadata in the message, which can be used to track conversations between users without any changes if other receivers are added later in the conversation:

> Thread-Index: AcvvoZr5wUUl1mneRmCpi5P/XCjYWQ== > Message-ID: < D3B87CB5E0A0F54EABF3B2319E4120AF18146392@my.mail.server > 
+4
source

All Articles