def do_rename(self, cmd):
        # You can delete a mailbox while you have commands in the command
        # queue, but no notifies are sent in that case.
        #
        if self.process_or_queue(cmd, queue = False):
            try:
                self.notifies()
            except MailboxLock:
                pass

        try:
            asimap.mbox.Mailbox.rename(cmd.mailbox_src_name,
                                       cmd.mailbox_dst_name,
                                       self.server)
        except MailboxLock, e:
            raise Bad("unable to lock mailbox %s, try again" % e.mbox.name)
        return

    ##################################################################
    #
Return True if ``val`` appears to be a URL, False otherwise.
dataset/ETHPy150Open scanner/asimap/asimap/client.py/Authenticated.do_rename--crossover with--dataset/ETHPy150Open mozilla/moztrap/moztrap/view/templatetags/urls.py/is_url