Updated ImapIdle sample to use the new MessagesArrived event