X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c9366c80d5a32921fe60a1fb5ba86ce3e88e292d..1d5e6d0340ba258b34b85ccdac4c402ccf4fd51e:/test/inc/test-pop?ds=inline diff --git a/test/inc/test-pop b/test/inc/test-pop index 73c31a87..db21c31d 100755 --- a/test/inc/test-pop +++ b/test/inc/test-pop @@ -24,7 +24,7 @@ setup_test TESTUSER=testuser TESTPASS=testuserpass -arith_eval 64001 + `id -u` % 1000 +arith_eval 64001 + $$ % 1000 testport=$arith_val HOME="${MH_TEST_DIR}"; export HOME @@ -70,13 +70,22 @@ Date: Tuesday, 19 Dec 2006 4:15:16 -0500 Dude, nmh is totally brutal. EOM +# Check netrc's permissions test +pid=`"${MH_OBJ_DIR}/test/fakepop" "$testport" '' '' "$testmessage"` +chmod g=w,o=x $netrc +run_test "inc -user ${TESTUSER} -host 127.0.0.1 -port $testport" \ + "inc: group or other permissions, 0100621, forbidden: $netrc +inc: Remove password or correct file permissions." +chmod go= $netrc + pid=`"${MH_OBJ_DIR}/test/fakepop" "$testport" \ "$TESTUSER" "$TESTPASS" "$testmessage"` 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<>" check "$testmessage" `mhpath +inbox 11` 'keep first' @@ -105,11 +114,13 @@ run_test "inc -user ${TESTUSER} -host 127.0.0.1 -port $testport -width 80 \ -pack $MH_TEST_DIR/inc.mbox" \ "Incorporating new mail into (null)... - 1 12/17 No Such User Hello<