OK, Here is the solution for regulating the # of messages to download on each pass.
in gateway.php find
PHP Code:
// retrieve each message and process
if ($grouptype == 'news'){
$lastmsg = ($group[lastmsg] >= $news->min()) ? $group[lastmsg] : $news->min();
$max = $news->max();
} else {
$lastmsg = 0;
$max = $Count;
}
for ($current = $lastmsg+1; $current <= $max; $current++){
and replace it with this
PHP Code:
// retrieve each message and process
if ($grouptype == 'news'){
$lastmsg = ($group[lastmsg] >= $news->min()) ? $group[lastmsg] : $news->min();
$max = $news->max();
} else {
$lastmsg = 0;
$max = $Count;
}
// Total to grab at one time
$grab = 500;
if (( $max - $lastmsg ) > $grab ) {
$max = $lastmsg + $grab ;
echo "Downloading messages from ".$lastmsg." to ".$max."<br>";
}
for ($current = $lastmsg+1; $current <= $max; $current++){
To deal with the Date Stamp issue I have made one change that I plan on removing when I've uploaded all of the back posts from the news groups.
PHP Code:
if ($group[lastmsg] == 0){
$date = strtotime($message[date]);
} else {
$date = strtotime($message[date]);
// $date = time();
}