perceval/backends/core/mbox.py
def _casedict_to_dict(self, message):
        """Convert a message in CaseInsensitiveDict to dict.

        This method also converts well known problematic headers,
        such as Message-ID and Date to a common name.
        """
        message_id = message.pop(self.MESSAGE_ID_FIELD)
        date = message.pop(self.DATE_FIELD)

        msg = {k: v for k, v in message.items()}
        msg[self.MESSAGE_ID_FIELD] = message_id
        msg[self.DATE_FIELD] = date

        return msg
def _casedict_to_dict(self, message):
        message_id = message.pop(self.MESSAGE_ID_FIELD)
        date = message.pop(self.DATE_FIELD)

        msg = {k: v for k, v in message.items()}
        msg[self.MESSAGE_ID_FIELD] = message_id
        msg[self.DATE_FIELD] = date

        return msg
def _casedict_to_dict ( self , message ) : message_id = message . pop ( self . MESSAGE_ID_FIELD ) date = message . pop ( self . DATE_FIELD ) msg = { k : v for k , v in message . items ( ) } msg [ self . MESSAGE_ID_FIELD ] = message_id msg [ self . DATE_FIELD ] = date return msg
Convert a message in CaseInsensitiveDict to dict.

        This method also converts well known problematic headers,
        such as Message-ID and Date to a common name.
Convert a message in CaseInsensitiveDict to dict .