pong implementation (imap search)