\n"; print "article could not be retrieved\n"; print "
\n"; if ($status == 400) { print "can't connect to news server - please try again later\n"; } elsif ($status == 412) { print "no newsgroup selected\n"; } elsif ($status == 423) { print "article does not exist on server\n"; } elsif ($status == 430) { print "article not found\n"; } else { print "article status not valid\n"; } print "
\n
\n";
}
elsif ($_ =~ /^From: (.*)/)
{
$from = $1;
if ($from =~ /([\w\-\!\+\#\$\!]+\.*[\w\-\!\+\#\$\.]+\@[\w\-\!\+\$\#\.]+\.[A-Za-z]+)/)
{
$email = $1;
}
$from = &EntifyVariable ($from);
if ($email)
{
print "From: $from
\n";
}
else
{
print "From: $from
\n";
}
}
elsif ($_ =~ /^Subject: (.*)/)
{
$subject = $1;
$subject = &EntifyVariable ($subject);
print "Subject: $subject
\n";
}
elsif ($_ =~ /^Date: (.*)/)
{
$date = $1;
$date = &EntifyVariable ($date);
print "Date: $date
\n";
}
}
else
{
&HTMLifyAddressesInTextLine;
print "$_\n";
}
# read next line of article
$_ = ;
$LineCount++;
}
print "\n";
}
}
}
sub QuitNewsServer
{
print S "QUIT\n";
$_ =