successfully importing and printing message upon receiving an attachment