Support searching by a gmail thread id

To go with the related libetpan pull request, this adds support to search a gmail thread id on an expression.   Let me know if something needs to be changed. Thanks.