code: async def rename_mailbox(self, before_name: str, after_name: str,
                               selected: SelectedMailbox = None) \
              -> Optional[SelectedMailbox]:
          
          ...
docs: Renames the mailbox owned by the user.
  
          See Also:
              `RFC 3501 6.3.5.
              <https://tools.ietf.org/html/rfc3501#section-6.3.5>`_
  
          Args:
              before_name: The name of the mailbox before the rename.
              after_name: The name of the mailbox after the rename.
              selected: If applicable, the currently selected mailbox name.
  
          Raises:
              :class:`~pymap.exceptions.MailboxNotFound`
              :class:`~pymap.exceptions.MailboxConflict`