[PATCH] introduce a virtual imaplib2 (was: Separate imaplib2 from offlineimap)

Nicolas Sebrecht nicolas.s-dev at laposte.net
Sat Jun 4 01:12:42 BST 2016


On Sat, Jun 04, 2016 at 02:04:07AM +0200, Nicolas Sebrecht wrote:

<...>

> diff --git a/offlineimap/imaplibutil.py b/offlineimap/imaplibutil.py
> index 32448b7..4d6f64e 100644
> --- a/offlineimap/imaplibutil.py
> +++ b/offlineimap/imaplibutil.py
> @@ -1,5 +1,5 @@
>  # imaplib utilities
> -# Copyright (C) 2002-2015 John Goerzen & contributors
> +# Copyright (C) 2002-2016 John Goerzen & contributors
>  #    This program is free software; you can redistribute it and/or modify
>  #    it under the terms of the GNU General Public License as published by
>  #    the Free Software Foundation; either version 2 of the License, or
> @@ -23,12 +23,12 @@ import threading
>  from hashlib import sha1
>  import socket
>  import errno
> +import zlib
> +import six
>  
>  from offlineimap.ui import getglobalui
>  from offlineimap import OfflineImapError
> -from offlineimap.imaplib2 import IMAP4, IMAP4_SSL, zlib, InternalDate, Mon2num
> -
> -import six
> +from offlineimap.virtual_imaplib2 import IMAP4, IMAP4_SSL, zlibInternalDate, Mon2num

I sucked at copying the patch in this mail. Above line is actually

+from offlineimap.virtual_imaplib2 import IMAP4, IMAP4_SSL, InternalDate, Mon2num

in the patch.

>  class UsefulIMAPMixIn(object):

<...>

Sorry,

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list