def attachments(self):
attachments = None<EOL>if '<STR_LIT>' in self.payload:<EOL><INDENT>attachments = self._get_attachments(self.request)<EOL><DEDENT>raw_email = self.get_raw_email()<EOL>if raw_email is not None:<EOL><INDENT>attachments = self._get_attachments_raw(raw_email)<EOL><DEDENT>return attachments<EOL>
Returns an object with:
        type = file content type
        file_name = the name of the file
        contents = base64 encoded file contents