# Test dist . "$MH_TEST_COMMON" msgfile=`mhpath b +inbox` cat >"$msgfile" < To: bob@example.com Subject: test dist Date: Mon, 18 Apr 2016 08:36:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <1as2n8-1Q9-00@deseo.home.schnalke.org> foo EOF runandcheck 'dist -whatnow true l +inbox' < `mhpath +drafts l` runandcheck 'send -debug +drafts l |sed "s/^Resent-Date:.*/Resent-Date:/" |sed "s/^Resent-From:.*/Resent-From:/"' < To: bob@example.com Subject: test dist Date: Mon, 18 Apr 2016 08:36:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <1as2n8-1Q9-00@deseo.home.schnalke.org> Resent-To: test@example.com Resent-Date: Resent-From: foo ----EOM---- test@example.com !