#!/bin/sh

function main()
{
  # convert all filenames to lowercase
  find $INBOUND$ -name "*[A-Z]*" -exec tolower {} \\;


  # check for Node/PointDiffs
  nlupdate
  ulc

  # toss
  hpt toss

  # check for bad pkts, archives, etc.

  # create echotoss.log
  touch $WORKDIR$/echotoss.log

  # scan for mails to send
  hpt scan

  # pack netmails
  hpt pack

  # create import.log
  touch $WORKDIR$/import.log

  # link areas with new mails
  hptutil link
}

main >> $logdir$/husky.log 2>&1

