X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b8538846d82f2bd7827eb66a7dc156f4f07b1a71..1a2ef2eed6ab723cbf2280c01cb6e1a0500d4001:/test/inc/test-pop diff --git a/test/inc/test-pop b/test/inc/test-pop index 0ae80293..64620173 100755 --- a/test/inc/test-pop +++ b/test/inc/test-pop @@ -70,6 +70,14 @@ 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"` @@ -97,25 +105,7 @@ check "$testmessage" `mhpath +inbox 11` 'keep first' check "${testmessage}.2" `mhpath +inbox 12` check "${testmessage}.3" `mhpath +inbox 13` -# check -pack -pid=`"${MH_OBJ_DIR}/test/fakepop" "$testport" \ - "$TESTUSER" "$TESTPASS" "$testmessage"` - -touch "$MH_TEST_DIR/inc.mbox" -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<>$MH pid=`"${MH_OBJ_DIR}/test/fakepop" "$testport" \ "$TESTUSER" "$TESTPASS" "$testmessage"` -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<