#!/bin/sh

if test $1 = "new"
  then
	cat | /usr/local/bin/utils/formatmsg > "$2"
  else
	cat | /usr/local/bin/utils/formatmsg >> "$2"
fi
