Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to code for grouping email in conversations

Tags:

.net

email

gmail

...similar to gmail !

Now it's easy enough to lump them together when the subject is (almost) same with additional prefixes ( re:, re: re:, ... ) perhaps

but you can include additional people when you reply etc. and they do show up in the original "conversation" thread

i haven't looked at the headers in a while but wondering if there are additional X-?????? headers that're being used or are part of some RFC/convention somewhere

any sample/example code that already does this would be great of course!

like image 389
Kumar Avatar asked Mar 31 '11 21:03

Kumar


People also ask

How do you group emails in a conversation?

Set your emails to Conversation ViewIn the View tab at the top of the screen, check the Show as Conversations box. This will group together emails by conversation.

How do you create an email group?

To create a group email account, follow the steps below: Visit Google Groups and click "Create Group." Enter a name for the group and type in the email address you want to use, which will end in "@googlegroups.com." Enter a description of the group for members to view.


2 Answers

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

Email Headers already offer 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 that this is a reply to. Used to link related messages together. This field only applies for reply messages.

Which can be used to link subsequent emails into a conversation group.

like image 56
Khez Avatar answered Dec 20 '22 16:12

Khez


Here is an algorithm: http://www.jwz.org/doc/threading.html

like image 20
jgauffin Avatar answered Dec 20 '22 15:12

jgauffin