enough_mail icon indicating copy to clipboard operation
enough_mail copied to clipboard

How to fetch the replies of a mimeMessage

Open mjmon opened this issue 5 years ago • 3 comments
trafficstars

Hello and good day

I'm using the lowlevel smtpClient in replying to an email.
I successfully send the reply like the code below.

MessageBuilder.prepareReplyToMessage(originalMessage, fromMailAddress)

But this time I want to render the replies on the screen, I checked the MimeMessage object and I cant seem to find list of replies. How to get the replies for a specific MimeMessage? I can see there's an new entry inside the Sent Mailbox after a successful reply. How to link them inside below the original message. I want it to be similar to gmail in which the reply messages are below the original message.

Thank you for your time.

mjmon avatar Sep 14 '20 06:09 mjmon

Hi mjmon, I am not sure if I got your question right. Do you ask how to thread messages? Currently the IMAP library does not support the SORT and THREAD Extensions, so you for now (as well as for servers that do not support these extensions), you need to thread messages individually. Typically this is done by evaluating the References header field.

Does this help?

robert-virkus avatar Sep 17 '20 14:09 robert-virkus

Hello @robert-virkus

Thank for your Reply, Yes its about the threading. I'm not to sure how to do this one

Typically this is done by evaluating the References header field.

Do you have a sample how to evaluate References?

Thank you

mjmon avatar Sep 18 '20 03:09 mjmon

Related: #44

robert-virkus avatar Jan 11 '21 12:01 robert-virkus