This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Currently I am using to fetch all the messages from a POP3 account that I have to poll. However, I am not aware of how/if I could fetch only a reply from a particular mail.
For ex., a mail is sent to a user and he replies to the mail. So the replied mail contains the originally sent mail too. I need only the users reply.
I was also thinking of demarcating it based on some special characters, but that wouldnt work if the user deleted the original mail.
Could you please guide me on .. if there is some way I can do it ?
Try using folder.search(...) instead of folder.getMessages(). With a FromTerm or a FromStringTerm you can filter out all emails not sent by that user. I don't know how to proceed after that, but perhaps you can investigate the emails to see if they have any information. Especially the headers may be useful.