docker-offlineimap/offlineimap
Sebastian Spaeth 3a91e296f0 Adapt the code to work with the new imaplib2
imaplib renamed self.sslobj to self.sock and our overriden open()
functions were failing for that reason when updating imaplib2 to
v2.28. It turns out that all of our custom initializations are being
done by stock imaplib2 now anyway, so there is no need to override them
anymore. This lets us simplify the code we have to worry about.

Move the verifycert() function to the imapserver.py file, it is now a
callback function that is being handed to imaplib from there, so it
makes sense to also define it in our imapserver function...
(this also lets us easily make use of the verifycert function in the
starttls case in the future)

TODO: we need to examine if and why we still need to override the
select() function, it is the only reason why we still wrap the IMAP4
classes.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-08-15 12:21:38 +02:00
..
folder Remove custom Gmail/folder/processmessagesflags() 2011-08-14 17:14:35 +02:00
repository LocalStatus.py: Fix getfolders() 2011-08-12 18:31:31 +02:00
ui Update example in code documentation of ui.error() 2011-08-14 17:18:51 +02:00
__init__.py v6.3.4 2011-08-10 21:44:58 +02:00
accounts.py accounts.py: Use ui.error when raising exceptions 2011-08-11 19:14:28 +02:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
error.py Add OfflineImapError class 2011-05-05 20:00:07 +02:00
imaplib2.py imaplib2: bump to upstream version 2.28 (rev 8228a0f) 2011-08-15 12:21:38 +02:00
imaplibutil.py Adapt the code to work with the new imaplib2 2011-08-15 12:21:38 +02:00
imapserver.py Adapt the code to work with the new imaplib2 2011-08-15 12:21:38 +02:00
imaputil.py imaputil.imapsplit: Remove overzealous debug statement 2011-06-25 17:06:53 +02:00
init.py Always call ui.terminate() 2011-06-16 18:57:35 +02:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00
threadutil.py fix broken ui Blinkenlights in multi-threaded mode 2011-05-18 18:38:05 +02:00