Note: `msgData` can be from either D_MSGINFO or D_DRAFTINFO. Definition at line 1483 of file libgmail.py. 01483 : """ Note: `msgData` can be from either D_MSGINFO or D_DRAFTINFO. """ # TODO: Automatically detect if it's a draft or not? # TODO Handle this better? self._parent = parent self._account = self._parent._account self.author = msgData[MI_AUTHORFIRSTNAME] self.id = msgData[MI_MSGID] self.number = msgData[MI_NUM] self.subject = msgData[MI_SUBJECT] self.to = msgData[MI_TO] self.cc = msgData[MI_CC] self.bcc = msgData[MI_BCC] self.sender = msgData[MI_AUTHOREMAIL] self.attachments = [GmailAttachment(self, attachmentInfo) for attachmentInfo in msgData[MI_ATTACHINFO]] # TODO: Populate additional fields & cache...(?) # TODO: Handle body differently if it's from a draft? self.isDraft = isDraft self._source = None def _getSource(self):
|