Does anyone have any sample code where you can detect all incoming email and all unread/old emails.