# BE WARNED!!! This will change logfiles (i.e. remove data!) and delete
# the complete contents of subdirectory [./tmp] of the ix/MBox ...
#
# Do NOT use it, if you don't know what effect it will have on your
# ix/MBox installation!!!!

HOME=/local/mbox

tail -1000 $HOME/etc/log.ip        > /tmp/prune; cat /tmp/prune > $HOME/etc/log.ip
tail -1000 $HOME/etc/log.charge    > /tmp/prune; cat /tmp/prune > $HOME/etc/log.charge
tail -1000 $HOME/etc/log.mbd-error > /tmp/prune; cat /tmp/prune > $HOME/etc/log.mbd-error
tail  -100 $HOME/etc/log.reflector > /tmp/prune; cat /tmp/prune > $HOME/etc/log.reflector
tail -1000 $HOME/etc/usage         > /tmp/prune; cat /tmp/prune > $HOME/etc/usage
tail -1000 /tmp/errlog             > /tmp/prune; cat /tmp/prune > /tmp/errlog

rm /tmp/prune

rm $HOME/tmp/*
