[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can newsgroup articles file be processed by mhonarc?

Darek Adamkiewicz wrote:
In my program I use Net::NNTP module to fetch messages form
particular newsgroup and append them to regular text file (it seems
to me that they are articles in source form) as I matter of fact I

$art = $nntp->article($msg_num);

if (defined($art)) {
foreach my $l (@$art) {
print OUT $l; }
print OUT "\n";


I attach example file. Can the file of that format be processed by
mhonarc the way mbox file is?

I suppose so. One thing you could try is adding a bogus message separator to each message before appending them to the file:

    unshift @$art,
      "From username\@domain.com Sat Jan  1 00:00:00 2000\n";

That's what I'm doing in the mhastart.pl script when grabbing email
messages from a POP account using Net::POP3.

Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]