Add search_by_mail function