Is there any Key or name field (in Message.Header or else) SAME or RELATE for both received and sent mail?

StackOverflow https://stackoverflow.com/questions/20852267

Question

Is there any Key or name field (in Message.Header or else) SAME or RELATE for both received and sent mail .

For example, MessageId is unique key for each message. But I want something else (Key). I had not found any field in Message.Header(Message or MimeMessage or with also MimeMessageHelper)

I am using Java.Mail and I want to group each received and reply mail with a key. Anybody help me, Please ?

Was it helpful?

Solution

In a word.

No.

There is nothing in the headers to tie one email to another. The closest you can do, is compare subjects + the Date.

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