
#!/bin/sh
#Syntax:
# wpost in_file out_file
#   ex: sh wpost internet.001 internet.txt

wsmail m+ $1

# Check for an existing packet
if [ -f $1 ]
then
  echo new mail found!
  sz -w 1024 $1
  rm $1
fi

# Check for an existing replies
if [ -f $2 ]
then
  echo sending replies, please wait...
  wsmail r- $2
fi

# Telix script can check this message for the end of Unix script operation
echo wpost done

