def set_subdir(self, subdir):
        if subdir == 'new' or subdir == 'cur':
            self._subdir = subdir
        else:
            raise ValueError("subdir must be 'new' or 'cur': %s" % subdir)
Set subdir to 'new' or 'cur'.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/MaildirMessage.set_subdir