docker-offlineimap/offlineimap
Nicolas Sebrecht acc9c3cf49 introduce a virtual imaplib2
The virtual imaplib2 first try to import imaplib2 when provided by the system.
If not provided or if the version is not supported, fallback on the bundled
imaplib2 version.

Distribution maintainers can now easily remove the bundled imaplib2 version if
they want to get it packaged outside of offlineimap.

We still want to provide imaplib2 by default because:
- this library is neither in Python core nor packaged by a lot of distributions;
- users expect to be able to run offlineimap by just downloading the tarball or
  after a git clone.

In order to avoid unexpected (too old) versions of imaplib2, we restrict the
supported versions of this librabry.

Reviewed-by: Łukasz Żarnowiecki <dolohow@outlook.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2016-06-04 12:17:53 +02:00
..
folder introduce a virtual imaplib2 2016-06-04 12:17:53 +02:00
repository maildir: Create top level dir recursively 2016-06-01 19:49:55 +02:00
ui Curses, UIBase: remove references to __bigversion__ 2016-03-05 06:47:24 +01:00
utils Make OS-default CA certificate file to be requested explicitely 2015-01-18 22:05:49 +03:00
__init__.py v7.0.0-rc1 2016-05-19 09:25:01 +02:00
accounts.py threading: improve variable names and factorize code 2016-05-18 04:23:02 +02:00
bundled_imaplib2.py introduce a virtual imaplib2 2016-06-04 12:17:53 +02:00
CustomConfig.py py3: raise exceptions using six module 2016-05-18 01:49:09 +02:00
emailutil.py Rename email.Parser to email.parser 2016-05-10 02:53:09 +02:00
error.py more consistent style 2015-01-07 21:31:43 +01:00
globals.py globals: use whitespaces instead of tabs 2016-05-22 23:31:54 +02:00
imaplibutil.py introduce a virtual imaplib2 2016-06-04 12:17:53 +02:00
imapserver.py threading: improve comments 2016-06-04 02:25:44 +02:00
imaputil.py Add workaround for string.split for Python3 2016-05-10 02:53:09 +02:00
init.py introduce a virtual imaplib2 2016-06-04 12:17:53 +02:00
localeval.py localeval: avoid redefining 'file' keyword 2015-01-14 17:18:48 +01:00
mbnames.py mbnames: add option to write the file once per account 2015-03-22 21:15:46 +01:00
threadutil.py threading: improve comments 2016-06-04 02:25:44 +02:00
virtual_imaplib2.py introduce a virtual imaplib2 2016-06-04 12:17:53 +02:00