classpathx-discuss
[Top][All Lists]
Advanced

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

Re: [Classpathx-discuss] Getting only latest X messages of a newsgroup


From: cedric . hyppolite
Subject: Re: [Classpathx-discuss] Getting only latest X messages of a newsgroup
Date: Mon, 31 Jul 2006 13:12:22 +0200
User-agent: Internet Messaging Program (IMP) 3.2.5

Quoting Chris Burdess <address@hidden>:

> Cedric Hyppolite wrote:
> > I see two ways:
> >
> > - Get at most X latest articles: fetching the message headers using
> > (last - X) or first -> last as the range in NNTPFolder.getMessages()
> >
> > - Get exactly the X latest articles: fetching the message headers
> > using first -> last and keeping only the latest X messages
> >
> > Either way, the internal cache is used to prevent queries for
> > previously downloaded messages.
> > Once the getMessages() returned the array of X recent messages,
> > their full content can be downloaded using fetch(Message[],
> > FetchProfile)
> >
> > There would be one property (for example
> > 'mail.nntp.limittolatest' ) that states the number of messages to
> > download at most or exactly.
> > This property should be read each time before being used so that a
> > client could change the value before fetching each newsgroup.
>
> I kind of see where you're going with this, but doesn't it change the
> semantics of getMessages? Wouldn't it be better just to concentrate
> on optimising the range passed to xhdr, and instead manage the
> messages' RECENT flags to indicate which ones were new in the last call?
>
> I'm not sure at all about returning fewer messages than are actually
> present.

This is a behaviour changed by properties similar to the way 'list folder' does
not return all folders by default...

Can you explain a little bit how you see the recent flag operation ?


> --
> 犬 Chris Burdess
>    "They that can give up essential liberty to obtain a little safety
>    deserve neither liberty nor safety." - Benjamin Franklin
>
>
>
>
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]