+ {
+ local $ENV{HOME} = $home;
+ local $ENV{ORIGINAL_RECIPIENT} = $addr;
+ run_with_env({PATH => $main_path}, [$mda], \$in);
+ }
+ local $ENV{GIT_DIR} = $maindir;
+
+ my $res = cgi_run("/test/m/slashy%2fasdf%40example.com.txt");
+ like($res->{body}, qr/Message-Id: <\Q$slashy_mid\E>/,
+ "slashy mid.txt hit");
+
+ $res = cgi_run("/test/m/blahblah\@example.com.txt");
+ like($res->{body}, qr/Message-Id: <blahblah\@example\.com>/,
+ "mid.txt hit");