#!/usr/bin/perl
#
# <honey@missprint.org>

require("cgi.pl");
require("missprint.pl");

# The URL of the parent page
$fromurl=$ENV{'HTTP_REFERER'}; 

# Get parameters
&ReadParse;

# Find which query we're after; do some magic guesswork for spaces
$WHICH = $in{'query'};
$LISTNAME = $in{'list'};
$SMODE = $in{'smode'};
#$WHICH = s/\+/\ /;
$WHICH = &escape($WHICH);

# Generate html
print <<EOT
Content-type: text/html

<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
<meta http-equiv="Refresh" content="0; URL=/archives/cgi-bin/namazu.cgi?query=$WHICH&idxname=$LISTNAME&Search=Search">
<title>The $LISTNAME Mailing List (archive)</title>
</head>
</html>
EOT
;
