Fixed the comparison logic in the ImapIdle sample