def add_label(self, label):
        if isinstance(label, str):
            if label not in self._labels:
                self._labels.append(label)
        else:
            raise TypeError('label must be a string: %s' % type(label))
Add label to list of labels on the message.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/BabylMessage.add_label