Implement CTCoreFolder.searchUidByHeader.

This uses mailimap_uid_search with a HEADER key to search for
messages by header.