def write(self, envelope, timestamp):
        while True:
            id = uuid.uuid4().hex
            if id not in self.env_db:
                self.env_db[id] = envelope
                self.meta_db[id] = {'timestamp': timestamp, 'attempts': 0}
                log.write(id, envelope)
                return id
dataset/ETHPy150Open slimta/python-slimta/slimta/queue/dict.py/DictStorage.write/original