'Saves mtimes from the mtimes dictionary in a single database operation.'

def savemessagesmtimebulk(self, mtimes):

    for (uid, mt) in mtimes.items():
        self.messagelist[uid]['mtime'] = mt
    self.save()
