#!/usr/bin/perl package MyParse; use HTML::Parser; my $CHUNKSIZE = 20; # how many messages to mark as read at a time. use strict; use vars qw(@ISA); my $msgid; my $ids; @ISA=qw(HTML::Parser); sub start { my ($self, $tag, $attr, $attrseq, $origtext)=@_; if ($tag eq "a") { $msgid = $attr->{href}; if ($msgid =~ /read\!/) { $msgid =~ s/^.*read\!//g; $ids .= ",$msgid"; } } } package main; use LWP::Simple; use URI::URL; use CGI; use CGI::Carp qw(fatalsToBrowser); $|=1; my %confname = ("Gener.Miraf" => "Mirafiori Events/News", "Gener.Gener" => "Tech Questions/Advice", "Gener._F_I_" => "/F/I/A/T/ /B/S/", "Gener.Cars_" => "Cars/Parts for Sale", "Gener.Cars_0" => "Cars/Parts Wanted", "Gener.The_X" => "The X1/9 Racer's Forum", "Gener.Event" => "Events", "Gener.Scoot" => "Scooters!"); my $q = new CGI; print $q->header; print "
\n"; if ($q->param('conf')) { mark_read($q->param('username'), $q->param('password'), $q->param('conf')); } else { print_menu(); } print "\n"; exit(0); sub print_menu { print <