def do_rm(self, arg):
        '''Remove mail from one mailbox.'''
        try:
            args = docopt.docopt('Usage: rm <mail_id>...', arg)
        except __HOLE__:
            return

        if self.delete_conf['delete_method'] == 'MOVE_TO_TRASH':
            copy.copy(self.imap_account, args['<mail_id>'],
                      self.delete_conf['trash_directory'])
        flag.flag(self.imap_account, args['<mail_id>'], [const.FLAG_DELETED])
        if self.delete_conf['delete_method'] in ['MOVE_TO_TRASH', 'EXPUNGE']:
            self.imap_account.expunge()
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/scripts/imap_shell.py/ImapShell.do_rm