Updated the ImapClientDemo sample