From: Richard J. <jo...@gm...> - 2005-09-26 10:03:46
|
On 9/26/05, Stas Z <sta...@gm...> wrote: > Hello > > I fixed the bug in the return value of a 'len' call to a message > thread, it now returns > 0 again when the thread is empty. It will be in the next release along > with some other > small fixes. I will release it this afternoon. > Thanks for that, gmailfs users everywhere will thanks you (all 2 or 3 of them :-) ). > I also added a new method called 'getUnreadMsg' which returns the inbox m= essages > marked 'unread'. > > I was wondering if we should change the way getMessagesbyFolder works. > Perhaps we return only the unread messages when the inbox is chosen. > The problem with calling getMess... with the 'inbox' is that on larger > accounts you > will get a "lockdown" due to the many calls to the Gmail servers. > > I think we also should limit the number of page call to avoid lockdowns. > > I would really like to hear any comments or ideas about this. > I don't have a strong opinion on this, I dont use this call in gmailfs, however from an API point of view it might be better to add a getUnreadMessagesByFolder and have some kind of strategy of dealing with the lockdown issue. Can you only get the first page and then load the others on demand when the user tries to iterate over them? Regards, Richard. |