I'm sure this has been discussed previously on stackoverflow but I'll let you do the searching...
Simple answer: There's no standard way to do this. Different mailers choose different techniques for embedding the text of the original message in a reply message. There are common conventions, and you can write heuristics to recognize those conventions, but because they're heuristics they will fail sometimes. JavaMail has nothing to help you here; this is just a string processing problem.