mhonarc-users

Re: using with NNTP

1997-05-09 10:40:42
: How can I get the articles from the newsgroups and store them where 
: MHonArc can use them?

How about using the The NNTPClient module at CPAN? A variation on
the following should work.

=cut

use News::NNTPClient;

$c = new News::NNTPClient("news.service.uci.edu");
($first, $last) = ($c->group("comp.lang.perl.misc"));

for (; $first <= $last; $first++) 
{
  print $c->article($first);
}
__END__

Now if only it were possible to do the following, life would be grand.
# warning - pseudocode

use News::NNTPClient;
use MHonArc;
my $arc = new MHonArc('/some/archive');

$c = new News::NNTPClient("news.service.uci.edu");
($first, $last) = ($c->group("comp.lang.perl.misc"));

for (; $first <= $last; $first++)
{
  $arc->add $c->article($first);
}
--
Eric D. Friedman
friedman(_at_)uci(_dot_)edu

<Prev in Thread] Current Thread [Next in Thread>