docker-offlineimap/offlineimap
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
..
folder IMAP: reduce quickchanged() checks 2011-04-25 12:58:47 +02:00
repository Merge branch 'master' into next 2011-03-15 19:28:02 +01:00
ui cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
__init__.py v6.3.3 2011-04-21 18:34:24 +02:00
accounts.py Always logout() on imaplib2 objects, even during exceptions 2011-03-25 18:26:22 +01:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
imaplib2.py imaplib2: Bump from 2.20 to 2.22 2011-04-11 19:10:45 +02:00
imaplibutil.py Fix IMAP4_Tunnel to work with imaplib2 2011-04-13 18:41:53 +02:00
imapserver.py Get rid of the UsefulIMAP4 classes 2011-03-23 20:00:35 +01:00
imaputil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
init.py Make -f option with with folder names with spaces. 2011-04-11 18:29:44 +02:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
threadutil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00