Package: offlineimap
Version: 5.99.0
Severity: important
Tags: patch

offlineimap 5.99.0 fails to start with the following traceback:

$ offlineimap 
Thread 'Account sync turbo' terminated with exception:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/offlineimap/threadutil.py", line 153, 
in run
    Thread.run(self)
  File "threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/var/lib/python-support/python2.4/offlineimap/accounts.py", line 118, 
in syncrunner
    self.sync()
  File "/var/lib/python-support/python2.4/offlineimap/accounts.py", line 133, 
in sync
    remoterepos.syncfoldersto(localrepos)
  File "/var/lib/python-support/python2.4/offlineimap/repository/Base.py", line 
130, in syncfoldersto
    srcfolders = src.getfolders()
  File "/var/lib/python-support/python2.4/offlineimap/repository/IMAP.py", line 
170, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/var/lib/python-support/python2.4/offlineimap/imapserver.py", line 183, 
in acquireconnection
    imapobj = UsefulIMAP4(self.hostname, self.port)
  File "imaplib.py", line 160, in __init__
    self.open(host, port)
  File "/var/lib/python-support/python2.4/offlineimap/imapserver.py", line 52, 
in open
    imaplibutil.new_open(self, host, port)
  File "/var/lib/python-support/python2.4/offlineimap/imaplibutil.py", line 
116, in new_open
    self.sock = socket.socket(af, socktype, proto)
UnboundLocalError: local variable 'af' referenced before assignment

Trivial one-liner:

--- imaplibutil.py~     2007-07-04 09:01:00.000000000 -0400
+++ imaplibutil.py      2007-07-11 11:49:57.000000000 -0400
@@ -113,7 +113,6 @@
         self.port = port
         res = socket.getaddrinfo(host, port, socket.AF_UNSPEC,
                                  socket.SOCK_STREAM)
-        self.sock = socket.socket(af, socktype, proto)
 
         # Try each address returned by getaddrinfo in turn until we
         # manage to connect to one.

Cheers,

Eloy.-

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages offlineimap depends on:
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-support                0.6.4      automated rebuilding support for p

offlineimap recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to