# uucp poll with O and Hermes 1.10
# Bourne-Style shell script
# wr 30.7.93

A=$*

PATH=d:/bin,d:/usr/bin,e:/o,$PATH
O_INF=e:/o/o.inf
export PATH O_INF

# run with parameter "poll" to supress export
if [ "$A" != "poll" ]
then
  # inform user about free disk space to help him decide whether to
  # abort oexpire (delete this line if you are not using the
  # Okami shell)
  echo Free space on H: `df -f h` bytes

  # O cleanup
  echo cut logs
  cutlog.ttp -W -l 500 -a 5 $ETC/log/*
  echo oexpire
  oexpire -W -Yu

  # O export
  echo oexport
  oexport

  # uucp export
  rsmtp
  rmail
  rnews
  batch tornado
  batchmai tornado
fi

# now do the uucp poll
uuwork -n tornado
# switch cursor back on (delete this line if you are not
# using the Okami shell)
cursor +v

# uucp import
rmail
rnews

# O import
echo oimport
oimport -Yu

echo Laberfilter
ofind -f e:/o/filter.inf soc.culture.german

# check mail
omchk -l wr root
echo ^007UU-Poll beendet.
