2
# $Id: test-pop3.sh,v 1.3 2007/10/10 22:31:24 nicm Exp $
4
[ -z "$FDM" ] && exit 1
11
set lock-file "$TEST.lock"
12
account 'account' $TYPE
13
pipe "cat $FIFO.in & cat >$FIFO.out" user "test" pass "test"
17
rm -f $FIFO.in $FIFO.out
18
mkfifo $FIFO.in $FIFO.out || exit 1
20
$FDM -mvvvv -f $TEST.conf f >$TEST.log 2>&1 &
25
while kill -0 $! 2>/dev/null; do
26
perl -e 'select(undef,undef,undef,0.01)'
30
rm -f $FIFO.in $FIFO.out $TEST.conf
31
[ "$DEBUG" = "" ] && rm -f $TEST.log
42
awk '/^\>/ { print substr($0, 2) }' $TEST >$FIFO.in || exit 1
43
awk '/^\</ { print substr($0, 2) }; /^--$/ { print "--" }' $TEST|\
45
if [ "$i" != "--" ]; then
48
if [ "$DEBUG" != "" ]; then
52
[ "$i" = "$j" ] || quit 1
59
grep "^account: $MSG" $TEST.log >/dev/null || quit 1
60
grep "^account: fetching error. aborted" $TEST.log >/dev/null || quit 1
66
grep "^account: [0-9]* messages processed" $TEST.log >/dev/null || quit 1