On Fri, May 04, 2001 at 12:17:02AM -0400, Travis Bemann wrote:
> There is a critical problem with the design of IndexClient.  When
> using dates, IndexClient assumes that the date is the current date
> (UTC/GMT, of course).  This is fine when inserting files into
> something like a newsgroup or mailbox, but it is horribly unsuitable
> when requesting items from a newsgroup or mailbox or whatever.  The
> reason is that it does not allow items from previous days which have
> not been downloaded yet to be read.  If you download some items one
> day, and then download more items the next day, all the items posted
> the previous day after the last downloaded will not be downloaded (and
> will seem to not exist).  This is quite a problem if you are not
> running something like a freenet-news/NNTP gateway constantly.
> 
> What would be better is if the last date and index is specified to
> IndexClient when instantiating it, and then it would keep track of the
> latest item date and index read and the present latest date and
> index.  It would automatically handle inserting items at the correct
> date and index, and would automatically handle rolling over dates
> (after a threshold of consecutive nonexistent items are requested for
> a certain day, a rollover to the next day and an index of 0 is done if
> the day being read is before the present day).  This would make using
> IndexClient much easier, and would eliminate the problem described in
> the previous paragraph.

This is why I haven't gotten much work done on freenet-news.  I looked
at the programmer interface of IndexClient and couldn't figure out to
use it.  Just today I realized that the reason why I couldn't figure
out how to use IndexClient is that IndexClient is improperly designed
while examining the IndexClient source code.  Should I go ahead with
changing IndexClient to make it really work (this will require
changing its programmer interfaces)?

-- 
Yes, I know my enemies.
They're the teachers who tell me to fight me.
Compromise, conformity, assimilation, submission, ignorance,
hypocrisy, brutality, the elite.
All of which are American dreams.

              - Rage Against The Machine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1877 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20010504/dd871085/attachment.pgp>

Reply via email to