def do_append(self, cmd):
        # You can append 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:
            mbox = self.server.get_mailbox(cmd.mailbox_name, expiry = 0)
            uid = mbox.append(cmd.message, cmd.flag_list, cmd.date_time)
        except asimap.mbox.NoSuchMailbox:
            # For APPEND and COPY if the mailbox does not exist we
            # MUST supply the TRYCREATE flag so we catch the generic
            # exception and return the appropriate NO result.
            #
            raise No("[TRYCREATE] No such mailbox: '%s'" % cmd.mailbox_name)
        return "[APPENDUID %d %d]" % (mbox.uid_vv, uid)

    ##################################################################
    #
Append a message to a mailbox.
dataset/ETHPy150Open scanner/asimap/asimap/client.py/Authenticated.do_append