TOTAL = 11 messages in 2 folders.'
-printf '' > $$.txt
-set +e
-if link $$.txt $$-2.txt 2>/dev/null; then
- # Hard links are supported.
+check_for_hard_links
+if [ $hard_links_supported -eq 1 ]; then
# check -link
run_test 'refile 7 -src +inbox +other -link' ''
run_test 'folders -noheader' \
cp -p Mail/inbox/7 Mail/other/2
folder -f +inbox 7 >/dev/null
fi
-set -e
-rm -f $$.txt $$-2.txt
# check -nolink
run_test 'refile 7 +other -link -nolink' ''
TOTAL = 13 messages in 3 folders.'
+# test -retainsequences
+mark first -seq seq1
+mark last -seq seq2
+refile first last -retainsequences +other
+run_test 'mark +other -list -sequence seq1 -sequence seq2' \
+ "seq1: 16
+seq2: 17"
+
exit $failed