X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1f53404d5e86f9c0e35cc86f422383cff9da351f..55deb9a8a3f78d67f5882d8e02bbaeab67c9078b:/test/inc/test-pop?ds=sidebyside diff --git a/test/inc/test-pop b/test/inc/test-pop index 580f0cda..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" @@ -56,8 +57,52 @@ run_test "inc -user ${TESTUSER} -host 127.0.0.1 -port $testport -width 80" \ "Incorporating new mail into inbox... 11+ 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<