#!/bin/csh
#mail-in	put mail into a spool file
#with locking.

# Change this to the incoming mail spool directory.
cd /home/myacct/reorder

loop:
if(-e lock) then
   sleep 1
   goto loop
endif
cat > in$$

if (-e none) then
   \rm none
endif
