change how email search by subject is put together.
fix how UIDs are returned for email searches.
unit test for imap email handler.