#!/bin/sh set -e folder -create +dupl-demo list_id='list.example.com' message_id='a.%d@example.org' for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do if test $(($i%4)) -eq 0; then the_list_id="$list_id" else the_list_id=List-Id: fi if test $i -lt 3; then the_message_id= else the_message_id="Message-Id: $(printf "$message_id" $(($i%5)))" fi printf 'Subject: %s\n%s\n%s\n' \ "$the_list_id, $the_message_id" "$the_list_id" "$the_message_id" > "$(mhpath +dupl-demo new)" done rmm +dupl-demo $(dupl) scan +dupl-demo