TESTUSER=testuser
TESTPASS=testuserpass
-testport=65413
+arith_eval 64001 + `id -u` % 1000
+testport=$arith_val
HOME="${MH_TEST_DIR}"; export HOME
netrc="${HOME}/.netrc"
Hope you're doing better.
EOM
-pid=`"${MH_OBJ_DIR}/test/fakepop" "$testmessage" "$testport" \
- "$TESTUSER" "$TESTPASS"`
+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...
check $testmessage `mhpath +inbox 11` 'keep first'
# check -pack
-pid=`"${MH_OBJ_DIR}/test/fakepop" "$testmessage" "$testport" \
- "$TESTUSER" "$TESTPASS"`
+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 \
"Incorporating new mail into (null)...
1 12/17 No Such User Hello<<Hey man, how's it going? . Hope you're do"
-run_test "inc -file $MH_TEST_DIR/inc.mbox -truncate" \
+run_test "inc -file $MH_TEST_DIR/inc.mbox -truncate -width 80" \
"Incorporating new mail into inbox...
11+ 12/17 No Such User Hello<<Hey man, how's it going? . Hope you're do"
chmod 600 "$netrc"
echo "credentials: file:${netrc}" >>$MH
-pid=`"${MH_OBJ_DIR}/test/fakepop" "$testmessage" "$testport" \
- "$TESTUSER" "$TESTPASS"`
+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 \