### Subject: Re: Fuller example of Net::NNTP?
### Date: Tue, 4 Feb 1997 10:37:58 -0800
### From: "Paul E. Hoffman" <phoffman@imc.org>
### To: Graham Barr <gbarr@ti.com>
###
### Thanks for your reply. After looking at the examples, I realized that
### you're not doing what I want, which is to store the messages on the local
### hard disk with the same message number as what was on the remote. So, I
### rolled my own program, although I haven't finished it yet (I have a hook
### for expiring, but haven't done it yet).
###
### You are welcome to use this in the Net:: distribution if you think it is
### useful.
###
### NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
###
### This script is included as-is, I give no guarantee that it will
### work on every system
###
# Format of grouplist is:
# groupname<tab>expirationdays
# expirationdays is the number of days to leave the articles around;
# set it to 0 if you want the articles to stay forever
# If the groupname starts with a #, it is skipped
while(<GROUPLIST>) {
}
# Process the expiration first (still to be done...)
# See if this is a new group
}
# Find the last article in the directory
else { $NumLastInDir = 0 }
if($NumLast < $NumLastInDir)
# Figure out which article to start from
else { $GetArtNum = $NumLastInDir + 1 }
# Now read each of the new articles
while(1) { # Loop until "last" is called
@ArtArr = @$ArtRef; $ArtArrLen = @ArtArr;
}
# Check if we're at the end
$GetArtNum += 1; # Increment the article number to get
}
}
exit;