#! /bin/sh MSGID=`grep -i '^Message-ID: ' | sed 's/^Message-ID: //' | head -1` echo 'Locally cancelling a post with the following Message-ID:' echo " $MSGID" [ "$1" = "test" ] || ctlinnd cancel "$MSGID"