enough_mail
enough_mail copied to clipboard
How to fetch the replies of a mimeMessage
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.
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?
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
Related: #44