#! /bin/sh 
#
# This program is run as a mail filter to process mail sent to 
#   "archive-server". It parses the incoming mail and makes work
#    queue entries.

PATH=/aeneas/ftp/archive/bin:/usr/local:/bin:/usr/ucb:/usr/bin
export PATH

TMPFILEB=/aeneas/ftp/archive/workqueue/in.$$
LOGFILE1=/aeneas/ftp/archive/requestqueue/in.log
LOGFILE2=/aeneas/ftp/archive/requestqueue/out.log

cat > $TMPFILEB
echo -n "`date` " >> $LOGFILE1
grep '^From: ' $TMPFILEB | sed 1q >> $LOGFILE1
exit 0
