def get_email_object(self):
if not hasattr(self, '<STR_LIT>'):  <EOL><INDENT>if self.eml:<EOL><INDENT>if self.eml.name.endswith('<STR_LIT>'):<EOL><INDENT>body = gzip.GzipFile(fileobj=self.eml).read()<EOL><DEDENT>else:<EOL><INDENT>self.eml.open()<EOL>body = self.eml.file.read()<EOL>self.eml.close()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>body = self.get_body()<EOL><DEDENT>if six.PY3:<EOL><INDENT>flat = email.message_from_bytes(body)<EOL><DEDENT>else:<EOL><INDENT>flat = email.message_from_string(body)<EOL><DEDENT>self._email_object = self._rehydrate(flat)<EOL><DEDENT>return self._email_object<EOL>
Returns an `email.message.Message` instance representing the
        contents of this message and all attachments.

        See [email.Message.Message]_ for more information as to what methods
        and properties are available on `email.message.Message` instances.

        .. note::

           Depending upon the storage methods in use (specifically --
           whether ``DJANGO_MAILBOX_STORE_ORIGINAL_MESSAGE`` is set
           to ``True``, this may either create a "rehydrated" message
           using stored attachments, or read the message contents stored
           on-disk.

        .. [email.Message.Message]: Python's `email.message.Message` docs
           (https://docs.python.org/2/library/email.message.html)