if (strpos(htmlentities($storage->getMessage($i)),\'chocolate\'))
Hi, I\'m using gmail oauth access to find specific text strings in email addr
strpos is likely to be faster than preg_match and the alternatives in this case, the best idea would be to do some benchmarks of your own with real example data and see what is best for your needs, although that may be overdoing it. Don't worry too much about performance until it starts to become a problem