• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving the last reply from a mail

 
Mike Anna
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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 ?


Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20399
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic