Question

Using JavaMail, I am able to read unread emails from the server. If a mail contains a thread of previous replies, is it possible to somehow distinguish between each message in the thread?

(The emails are HTML encoded)

Was it helpful?

Solution

Are you talking about the case where someone replies to a message and the reply message includes the text of the original message? Are you trying to separate out the text of the original message?

If that's what you're trying to do, the simple answer is that there's no defined way to do that. You're stuck with heuristics, trying to guess which parts of the text are the original message and which parts are the reply.

If you're talking about conversation "threads" that relate one message to another, see the link in the comment above.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top