# invoke "inc" for each locking algorithm
#
+mv -f ${MHMTSCONF} ${MHMTSCONF}.backup
+
for locktype in $supported_locks
do
- mv -f ${MHMTSCONF} ${MHMTSCONF}.backup
- sed -e '/^datalocking:/d' < ${MHMTSCONF}.backup > ${MHMTSCONF}
- rm -f ${MHMTSCONF}.backup
+ sed -e '/^spoollocking:/d' < ${MHMTSCONF}.backup > ${MHMTSCONF}
echo "spoollocking: $locktype" >> ${MHMTSCONF}
run_test "inc -notruncate -width 80 -file $testmessage" \
"Incorporating new mail into inbox...
- 11+ 12/17 No Such User Hello, how are you?<<This is a test; will it wor
+ 11+ 12/17 No Such User Hello, how are you?<<This is a test; will it work
$testmessage not zero'd"
rmm 11
-
done
+#### Restore mts.conf so subsequent tests use expected spoollocking.
+mv -f ${MHMTSCONF}.backup ${MHMTSCONF}
+
rm -f "$testmessage"
exit ${failed:-0}