#include <infodrom.style>
#include <debian.style>

<page title="Debian Mailing-List Archive">

<h1 align=center>Debian Mailing-List Archive</h1>

<?
  if (($s = stat ("mailing-lists.txt"))) {
    if (($f = fopen ("mailing-lists.txt", "r")) != false) {
      $lists = array ("debian-user-de","debian-events-de");
      while (!feof ($f)) {
        $line = fgets ($f, 255);
<protect>
        if (preg_match("/^  ([a-z][^ ]*)@lists.debian.org/", $line, $matches))
          $lists[] = $matches[1];
</protect>
      }
    }
  }

?>

<form method="post" action="lists-lookup.php">
<center>
<table border="0" cellspacing="0" cellpadding="2" width="80%" bgcolor="<cold>">
<tr>
<td align="right" width="30%"><ifont>&nbsp;List</ifont></td>
<td width="70%"><ifont>&nbsp;<select name=list><?

  sort ($lists);
  for ($i=0; $i <= count ($lists); $i++) {
    if (strlen ($lists[$i]) > 0) {
      if ($lists[$i] == "debian-devel") {
        printf ("<option selected> %s", $lists[$i]);
      } else {
        printf ("<option> %s", $lists[$i]);
      }
    }
  }

?></select></ifont></td>
</tr>

<tr>
<td align="right" width="30%"><ifont>&nbsp;Month</ifont></td>
<td width="70%"><ifont>&nbsp;<select name=month><option> 1996<option> 1997<?

  $years = array();
  for ($y = 1998; $y < date("Y"); $y++)
    $years[] = $y;

  $months = array (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
  for ($y=0; $y < count ($years); $y++) {
    for ($m=0; $m < count ($months); $m++) {
      printf ("<option> %d-%02d", $years[$y], $months[$m]);
    }
  }
  $year = date ("Y");
  $month = date ("m");
  $m = 1;
  while ($m <= $month) {
    if ($m == $month) {
      printf ("<option selected> %d-%02d", $year, $m);
    } else {
      printf ("<option> %d-%02d", $year, $m);
    }
    $m++;
  }

?></select></ifont></td>
</tr>

<tr>
<td colspan="2" align="center">
<center><ifont><input type="submit" value="Go!"> &nbsp; <input type="reset" value="Reset"></ifont></center>
</td>
</tr>

</table>
</center>
</form>

<blockquote>
<p><b>Disclaimer:</b> Please note that this is just a simple frontend and
that not all lists are available for a given year and month.
Especially lists at <a href="http://lists.debian.org/">lists.debian.org</a> 
are archived as compressed mbox files if they are some years old.
</blockquote>

</page>

# Local variables:
# mode: html
# mode: auto-fill
# end:
