def putscript(self, name, content):
        """Upload a script to the server

        See MANAGESIEVE specifications, section 2.6

        :param name: script's name
        :param content: script's content
        :rtype: boolean
        """
        content = tools.to_bytes(content)
        content = tools.to_bytes("{%d+}" % len(content)) + CRLF + content
        code, data = (
            self.__send_command("PUTSCRIPT", [name.encode("utf-8"), content]))
        if code == "OK":
            return True
        return False
def putscript ( self , name , content ) : content = tools . to_bytes ( content ) content = tools . to_bytes ( "{%d+}" % len ( content ) ) + CRLF + content code , data = ( self . __send_command ( "PUTSCRIPT" , [ name . encode ( "utf-8" ) , content ] ) ) if code == "OK" : return True return False
Upload a script to the server

        See MANAGESIEVE specifications, section 2.6

        :param name: script's name
        :param content: script's content
        :rtype: boolean