Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / PerlMail / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 58%
rename from project/PerlMail/Index.html.pl
rename to project/PerlMail/Index.pm
index f9048f7..a25cf62
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Main page of 'My::Project::PerlMail'
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,17 +23,37 @@ our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
-BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-Wuse 'My::Project';
-Wuse 'project::PerlMail::ListItem';
+Wuse 'project::Lib';
 
 
-My::Project->init_project(
-               "__PACKAGE__"=>__PACKAGE__,
-               "ListItem"=>\@project::PerlMail::ListItem::ListItem,
+our @ListItem=(
+               "name"=>"PerlMail",
+               "platform"=>"unixuser",
+               "priority"=>640,
+               "cvs"=>"PerlMail",
+               # FIXME: 'http://cvs.jankratochvil.net/viewcvs/' -> $W->{"project_viewcvs"}
+               "link-README"=>'http://cvs.jankratochvil.net/viewcvs/'."*checkout*/PerlMail/README?rev=HEAD",
+               "summary"=>sub { return "Perl mail processor - ".a_href('http://www.procmail.org/','procmail')."(1) successor"; },
+               "license"=>"GPL",
+               "maintenance"=>"ready",
+               "language"=>"Perl",
+               "description"=>sub { return <<"HERE"; },
+<p>Successor to @{[ a_href 'http://www.procmail.org/','procmail' ]}(1)
+and @{[ a_href 'http://search.cpan.org/author/SIMON/Mail-Audit-2.1/','Mail::Audit' ]}.
+It supports @{[ a_href 'http://www.perl.org/','Perl' ]}-rules filtering, dynamic client IP,
+mobile SMS forwarding, @{[ a_href 'http://www.mutt.org/','Mutt' ]} integration,
+@{[ a_href 'http://www.nokia.com/phones/9110i','Nokia Communicator' ]} contacts directory integration.</p>
+<p>Use if you like: <span class="quote">
+       @{[ escapeHTML(q{store "=spam" if ($_=mimehead(body_first())->mime_attr("Content-Type")) && m#text/html#i;}) ]}
+       </span></p>
+HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
 
 print <<"HERE";
 <p>Features list</p>
@@ -54,4 +72,6 @@ print <<"HERE";
 HERE
 
 
-My::Web->footer();
+exit;
+}
+1;