}
my $failbox = "$home/fail.mbox";
-local $ENV{PI_FAILBOX} = $failbox;
+local $ENV{PI_EMERGENCY} = $failbox;
{
local $ENV{HOME} = $home;
- local $ENV{RECIPIENT} = $addr;
+ local $ENV{ORIGINAL_RECIPIENT} = $addr;
# ensure successful message delivery
{
# atom feeds
{
local $ENV{HOME} = $home;
- my $res = cgi_run("/test/all.atom.xml");
+ my $res = cgi_run("/test/atom.xml");
like($res->{body}, qr/<title>test for public-inbox/,
"set title in XML feed");
like($res->{body},
qr!http://test\.example\.com/test/m/blah%40example\.com!,
"link id set");
like($res->{body}, qr/what\?/, "reply included");
-
- $res = cgi_run("/test/index.atom.xml");
- unlike($res->{body}, qr/what\?/, "reply not included in index");
}
# indices
like($res->{head}, qr/Status: 200 OK/, "index returns 200");
my $idx = cgi_run("/test/index.html");
+ $idx->{body} =~ s!/index.html(\?r=)!/$1!; # dirty...
is_deeply($res, $idx,
- '/$LISTNAME/ and /$LISTNAME/index.html are identical');
+ '/$LISTNAME/ and /$LISTNAME/index.html are nearly identical');
# more checks in t/feed.t
}
{
local $ENV{HOME} = $home;
- local $ENV{RECIPIENT} = $addr;
+ local $ENV{ORIGINAL_RECIPIENT} = $addr;
run_with_env({PATH => $main_path}, [$mda], \$in);
}
local $ENV{GIT_DIR} = $maindir;