basic reading of emails and attachments working