docker-offlineimap/offlineimap/folder
Sebastian Spaeth 36eb37b47d IMAP: reduce quickchanged() checks
For each folder we were making a second IMAP request asking for the
latest UID and compared that with the highest UID in our
statusfolder. This catched the case that 1 mail has been deleted by
someone else and another one has arrived since we checked, so that the
total number of mails appears to not have changed.

We don't capture anymore this case in the quickchanged() case.

It improves my performance from 8 to about 7.5 seconds per check (with lots of
variation) and we would benefit even more in the IMAP<->IMAP case as we do one
additional IMAP lookup per folder on each side then.

Do cleanups on whitespaces while in this file.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-04-25 12:58:47 +02:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Replace calls to getmessagelist() to alternatives 2011-03-28 17:53:14 +02:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py IMAP: reduce quickchanged() checks 2011-04-25 12:58:47 +02:00
LocalStatus.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
Maildir.py folder/Maildir: Make use of helper functions 2011-04-11 18:57:25 +02:00
UIDMaps.py Implement more efficient functions for the MappedUID case 2011-03-28 17:52:22 +02:00