To search a keyworD in emails search(String) methoD is useD. This methoD returns the collection of SearchResult objects. For Details, see Search Text.
Here are the steps to search a keyworD in the email:
Instantiate Parser object for the initial email; Call search(String) methoD anD obtain the collection of SearchResult objects; Iterate through the collection anD get the position anD text. Warning search(String) methoD returns null value if search isn’t supporteD for the email....Usage / Extract data from various formats / Extract data from...email. For example, text extraction isn’t supported for Zip archive...