0

I am developing an email client. I have being able to retrieve messages from server (Dovecot imap). I am not able to retrieve or to show the related reply messages. This concept is know as message thread. Can anyone help me about how to get this message thread in Java mail?

I tried using gimap (Google imap) lib but got confused.

halfer
  • 19,824
  • 17
  • 99
  • 186
gigme lepcha
  • 11
  • 1
  • 4
  • If the original message is in the Inbox, the reply message would be in the Sent Messages (or similar) folder, is that where you're looking for it? If the reply is sent by a third person, it might be in the Inbox along with the original message, are you not able to find it there? Or are you not able to correlate the reply with the original message? – Bill Shannon Jan 31 '18 at 06:59
  • Thank u for your reply Bill. I am getting all the replies and it is there in my folder. There is no problem with that. The only issue is i am not able to show the related message. EXAMPLE- A sends to B ::::: B replies to A ::A replied back:::::: Now when B retrieve its messages there are two message send by A. ACtually yes there are two message but i want to know how to find out these two messages are related ? Hope i make sense ?? – gigme lepcha Jan 31 '18 at 08:42
  • Look at the In-Reply-To and References headers. There's an RFC that describes them, and I believe another RFC that describes how to sort messages into "threads" or "conversations". – Bill Shannon Jan 31 '18 at 18:29
  • I tried but could not got one that i understand, so i did it using message reference header. – gigme lepcha Feb 06 '18 at 07:43
  • @BillShannon can u please give me your email id, i have few questions to ask you. gigmelepcha9@gmail.com this is my email id if u dont want to reveal yours. – gigme lepcha Feb 06 '18 at 07:45
  • You can send questions to javamail_ww@oracle.com. – Bill Shannon Feb 06 '18 at 17:45

0 Answers0