[PATCH] folder/IMAP.py: accord __version__ with import

Nicolas Sebrecht nicolas.s-dev at laposte.net
Thu Jan 27 18:46:08 GMT 2011


Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 Changelog.draft.rst        |    2 ++
 offlineimap/folder/IMAP.py |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Changelog.draft.rst b/Changelog.draft.rst
index 8b599f9..1ff75b9 100644
--- a/Changelog.draft.rst
+++ b/Changelog.draft.rst
@@ -19,6 +19,8 @@ Changes
 Bug Fixes
 ---------
 
+* accord __version__ with import
+
 
 Pending for the next major release
 ==================================
diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py
index 76f0c4a..77d6f36 100644
--- a/offlineimap/folder/IMAP.py
+++ b/offlineimap/folder/IMAP.py
@@ -234,7 +234,7 @@ class IMAPFolder(BaseFolder):
         headervalue += binascii.hexlify(self.getname())
         headervalue += '-%d-' % long(time.time())
         headervalue += str(self.randomgenerator.random()).replace('.', '')
-        headervalue += '-v' + offlineimap.__version__
+        headervalue += '-v' + __version__
         return (headername, headervalue)
 
     def savemessage_addheader(self, content, headername, headervalue):
-- 
1.7.4.rc1.220.g438e4





More information about the OfflineIMAP-project mailing list