jadolg / webpymail

Automatically exported from code.google.com/p/webpymail
GNU General Public License v3.0
0 stars 0 forks source link

Message list could be slow if folder have lots of messages #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Message list view requests all UIDs for folder messages, and if we have lots of 
messages (e.g. I have 2000 in gmail) it could be a bit slow.

This thing does not make webpymail too slow on list view, but maby it's better 
to get letters by ID in folder, and get number of messages from SELECT request?

(but in this situation using webpymail SORT functionality is the most narrow 
part)

Original issue reported on code.google.com by akimov.alex on 17 Nov 2010 at 1:35

GoogleCodeExporter commented 9 years ago
The problem is that Gmail's IMAP doesn't support the SORT extension (nor the 
THREAD extension for that matter - RFC 5256). If we want to have sorted message 
lists we have to get all UID's then we get all the envelopes and then do the 
sorting our selfs (this is done in class Sorter, of hlimap/imapmessage.py ). 

Is this the problem you're referring to? 

Original comment by hel...@tretas.org on 21 Nov 2010 at 3:14