X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/716f2cfbd1606cfbaa0970413fc48f40531451b2..79f7ee461078bd837632b2ca9fdf94ab4a080a36:/test/inc/test-pop diff --git a/test/inc/test-pop b/test/inc/test-pop index 7724ae3c..960727d6 100755 --- a/test/inc/test-pop +++ b/test/inc/test-pop @@ -24,7 +24,8 @@ setup_test TESTUSER=testuser TESTPASS=testuserpass -testport=65413 +arith_eval 64001 + `id -u` % 1000 +testport=$arith_val HOME="${MH_TEST_DIR}"; export HOME netrc="${HOME}/.netrc" @@ -68,11 +69,39 @@ run_test "inc -user ${TESTUSER} -host 127.0.0.1 -port $testport -width 80 \ "Incorporating new mail into (null)... 1 12/17 No Such User Hello< "$netrc" +chmod 600 "$netrc" +echo "credentials: file:${netrc}" >>$MH + +pid=`"${MH_OBJ_DIR}/test/fakepop" "$testmessage" "$testport" \ + "$TESTUSER" "$TESTPASS"` + +touch "$MH_TEST_DIR/inc.mbox" +run_test "inc -user ${TESTUSER} -host 127.0.0.1 -port $testport -width 65 \ + -pack $MH_TEST_DIR/inc.mbox" \ + "Incorporating new mail into (null)... + + 1 12/17 No Such User Hello<