#!/bin/sh
#
# $Id: runpoll-orodruin.sh,v 4.5 2003/04/26 16:35:05 n0ll Exp $
#
# orodruin.fido.de's poll script using ifcico
#

LIBDIR=/usr/pkg/lib/fidogate
BINDIR=/usr/pkg/lib/fidogate/bin
IFMAIL=/usr/pkg/sbin

UPLINK=f2.n1000.z242



# Show executed commands
set -x


# Batch ffx news
$BINDIR/send-ffx

# Batch ffx mail
$LIBDIR/ftnpack -f 242:1000/1 -I %B/out.0f2/morannon

# Gateway
$BINDIR/send-fidogate

# Tosser w/o file attachments
$BINDIR/runtoss outpkt
$BINDIR/runtoss outpkt/mail
$BINDIR/runtoss outpkt/news

# Poll
$IFMAIL/ifcico $UPLINK

# Tosser, only protected inbound
$BINDIR/rununpack pin
$BINDIR/runtoss   pin

# Gateway
$LIBDIR/ftnin -x %L/ftninpost

# Unbatch and process ffx files
$LIBDIR/ffxqt

# Process tic files
$LIBDIR/ftntick

# Process mail queue
#/usr/sbin/sendmail -q

# Tosser expire
$LIBDIR/ftnexpire
