ossp-pkg/lmtp2nntp/test/run.sh
1.1
#/bin/sh
if [ -e /tmp/t ]
then
ssh -t -x root@localhost exec rm -f /tmp/t
fi
echo ------------------------------------------------------------
#./lmtp2nntp -h news-muc1.de.cw.net -h news-ffm2.de.cw.net -h news-dus2.de.cw.net -h news-ecrc.de
awk <testmessage1 "\
/Message-ID/ { print \"Message-ID: `date +%Y%m%d%H%M%S`@dev12.dev.de.cw.net\" } \
!/Message-ID/ { print \$0 } \
" \
| ./lmtp2nntp -g envelope -h news-ffm2.de.cw.net -h news-dus2.de.cw.net -h news.ecrc.de
echo -----------------------------------------------------------
if [ -r /tmp/t ]
then
cat /tmp/t
fi