Updated the ImapIdle sample to show how to run an idle loop using a timer