$record->{recips} = [split /\04/, $_, -1];
}
$this->{state} = 'kill-body';
+ $record->{start} = $logfh->tell+2;
+ $record->{stop} = $logfh->tell+2;
+ $record->{inner_file} = $this->{inner_file};
} elsif ($this->{state} eq 'autocheck') {
$record->{text} .= "$_\n" unless $this->{inner_file};
next if !/^X-Debian-Bugs(-\w+)?: This is an autoforward from (\S+)/;
# -*- mode: cperl;-*-
-use Test::More tests => 6;
+use Test::More tests => 8;
use warnings;
use strict;
ok($mech->content() =~ qr/^From /m,
'Starts with a From appropriately');
+$mech->get_ok('http://localhost:'.$port.'/?bug=1;mboxmaint=yes',
+ 'Page received ok');
+print STDERR $mech->content();
+ok($mech->content() !~ qr/[\x01\x02\x03\x05\x06\x07]/i,
+ 'No unescaped states');
+
+
# Other tests for bugs in the page should be added here eventually