def _pre_mailbox_hook(self, f):
        """Called before writing the mailbox to file f."""
        f.write('BABYL OPTIONS:%sVersion: 5%sLabels:%s%s\037' %
                (os.linesep, os.linesep, ','.join(self.get_labels()),
                 os.linesep))
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Babyl._pre_mailbox_hook/original