Originally posted by Levy Lazarre
run { keylget args MSGID mh ;# Get message handle set msg [msgget $mh] ;# Get message # Remove the last four characters ($Z$Q) from the message set msg [string range $msg 0 end-4] # Put modified message in message handle and continue the message msgset $mh $newmsg return "{CONTINUE $mh}"}