From 4565125783fbc563094f1870b50d3cc5b83e65bf Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Fri, 31 Dec 2004 15:00:51 +0000 Subject: [PATCH] wibble --- include/spool.inc.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/spool.inc.php b/include/spool.inc.php index 2070a67..c19104c 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -114,19 +114,21 @@ class spool for ($id=min(array_keys($this->overview)); $id<$first; $id++) { $this->delid($id, false); } - $first = max(array_keys($this->overview))+1; + $start = max(array_keys($this->overview))+1; } else { unset($this->overview, $this->ids); $this->group = $_group; $this->version = BANANA_SPOOL_VERSION; + $start = $first; } - if (($first<$last) && $groupinfo[0]) { - $dates = array_map("strtotime", $_nntp->xhdr("Date", "$first-$last")); - $subjects = array_map("headerdecode", $_nntp->xhdr("Subject", "$first-$last")); - $froms = array_map("headerdecode", $_nntp->xhdr("From", "$first-$last")); - $msgids = $_nntp->xhdr("Message-ID", "$first-$last"); - $refs = $_nntp->xhdr("References", "$first-$last"); + if (($start<$last) && $groupinfo[0]) { + + $dates = array_map("strtotime", $_nntp->xhdr("Date", "$start-$last")); + $subjects = array_map("headerdecode", $_nntp->xhdr("Subject", "$start-$last")); + $froms = array_map("headerdecode", $_nntp->xhdr("From", "$start-$last")); + $msgids = $_nntp->xhdr("Message-ID", "$start-$last"); + $refs = $_nntp->xhdr("References", "$start-$last"); if (isset($this->ids)) { $this->ids = array_merge($this->ids, array_flip($msgids)); @@ -203,6 +205,7 @@ class spool } } } + return true; } -- 2.1.4