#!/bin/csh -f
# set things up for the first time around the offline mail loop
# get the emails from pop
source setupenv
# start the comms link up
startpsion
# build the in and out mta files
createbothmta
# build the transfer command
buildfirsttrans
# actualy do the transfer
echo "Transfering the files"
dotrans
echo "Shutting the psion down"
endpsion
# tidyup the .msg, .mta and .hdr files
echo "Deleting working files"
dotidy
# warn the user the transfer the applications
echo If the applications are not loaded onto your psion
echo please run the installapp command
