Added uidSearch function to IMAP