[Bug 426563] New: Offlineimap does not work with SSL connections
https://bugzilla.novell.com/show_bug.cgi?id=426563 Summary: Offlineimap does not work with SSL connections Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.com QAContact: qa@suse.de CC: gregkh@novell.com Found By: Development Connections with SSL cannot be synchronized anymore since yesterday's update to stable: my offlineimaprc: ------- [Account gwmail] localrepository = gwmail-local remoterepository = gwmail-remote autorefresh = 10 [Repository gwmail-local] type = Maildir localfolders = ~/MailGW [Repository gwmail-remote] type = IMAP remotehost = my.ssl.imap.host ssl = yes remoteuser = username remotepass = passwd ------- Output: seife@stoetzler:~> /usr/bin/offlineimap -u TTY.TTYUI -a gwmail /usr/lib64/python2.6/site-packages/offlineimap/folder/Maildir.py:23: DeprecationWarning: the md5 module is deprecated; use hashlib instead import os.path, os, re, time, socket, md5 OfflineIMAP 6.0.3 Copyright (C) 2002 - 2008 John Goerzen <jgoerzen@complete.org> This software comes with ABSOLUTELY NO WARRANTY; see the file COPYING for details. This is free software, and you are welcome to distribute it under the conditions laid out in COPYING. Account sync gwmail: ***** Processing account gwmail Account sync gwmail: Copying folder structure from IMAP to Maildir Account sync gwmail: Establishing connection to my.ssl.imap.host:993. /usr/lib64/python2.6/site-packages/offlineimap/imaplibutil.py:172: DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead. self.sslobj = socket.ssl(self.sock._sock, self.keyfile, self.certfile) Thread 'Account sync gwmail' terminated with exception: Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/offlineimap/threadutil.py", line 149, in run Thread.run(self) File "/usr/lib64/python2.6/threading.py", line 477, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.6/site-packages/offlineimap/accounts.py", line 113, in syncrunner self.sync() File "/usr/lib64/python2.6/site-packages/offlineimap/accounts.py", line 142, in sync remoterepos.syncfoldersto(localrepos, [statusrepos]) File "/usr/lib64/python2.6/site-packages/offlineimap/repository/Base.py", line 135, in syncfoldersto srcfolders = src.getfolders() File "/usr/lib64/python2.6/site-packages/offlineimap/repository/IMAP.py", line 194, in getfolders imapobj = self.imapserver.acquireconnection() File "/usr/lib64/python2.6/site-packages/offlineimap/imapserver.py", line 224, in acquireconnection self.sslclientkey, self.sslclientcert) File "/usr/lib64/python2.6/imaplib.py", line 1137, in __init__ IMAP4.__init__(self, host, port) File "/usr/lib64/python2.6/imaplib.py", line 163, in __init__ self.open(host, port) File "/usr/lib64/python2.6/site-packages/offlineimap/imapserver.py", line 65, in open imaplibutil.new_open_ssl(self, host, port) File "/usr/lib64/python2.6/site-packages/offlineimap/imaplibutil.py", line 172, in new_open_ssl self.sslobj = socket.ssl(self.sock._sock, self.keyfile, self.certfile) File "/usr/lib64/python2.6/socket.py", line 61, in ssl return _realssl.sslwrap_simple(sock, keyfile, certfile) File "/usr/lib64/python2.6/ssl.py", line 437, in sslwrap_simple ssl_sock = _ssl.sslwrap(sock._sock, 0, keyfile, certfile, CERT_NONE, AttributeError: '_socket.socket' object has no attribute '_sock' Last 1 debug messages logged for Account sync gwmail prior to exception: maildir: MaildirRepository initialized, sep is '.' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 Christoph Thiel <cthiel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |gregkh@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 User gregkh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=426563#c1 Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |seife@novell.com --- Comment #1 from Greg Kroah-Hartman <gregkh@novell.com> 2008-09-16 06:38:54 MDT --- Had you previously used the 4.0 version and this is the first time you are using 6.0? What changed here, the offlineimap package has not. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 User seife@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=426563#c2 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmatejek@novell.com Status|NEEDINFO |NEW Info Provider|seife@novell.com | --- Comment #2 from Stefan Seyfried <seife@novell.com> 2008-09-16 08:59:22 MDT --- Actually, it happens both with the 4.0.11 I have in my $HOME and with the current version, so it _might_ be a python issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=426563#c3 --- Comment #3 from Jan Matejek <jmatejek@novell.com> 2008-09-16 09:42:36 MDT --- i'll look into it; please note, though, that what is now in STABLE is -not- the latest python available, use http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/ (as soon as it rebuilds) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=426563#c4 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|gregkh@novell.com |jmatejek@novell.com Status|NEW |ASSIGNED --- Comment #4 from Jan Matejek <jmatejek@novell.com> 2008-09-17 14:46:56 MDT --- i have found the cause of this problem, now i need to clarify if this is actually a bug in python (and possibly upstream it). as a workaround, you can change this line File "/usr/lib64/python2.6/site-packages/offlineimap/imaplibutil.py", line 172, in new_open_ssl self.sslobj = socket.ssl(self.sock._sock, self.keyfile, self.certfile) to read self.sslobj = socket.ssl(self.sock, self.keyfile, self.certfile) but that is probably backwards incompatible -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=426563 User jmatejek@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=426563#c5 Jan Matejek <jmatejek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Jan Matejek <jmatejek@novell.com> 2008-09-19 12:44:00 MDT --- today's submit fixes the issue. let's hope python will be finally accepted into head, or grab your python from BuildService: one-click install (Factory): http://software.opensuse.org/ymp/devel:languages:python:Factory/openSUSE_Fac... files: http://download.opensuse.org/repositories/devel:/languages:/python:/Factory/ buildservice project: https://build.opensuse.org/project/show?project=devel:languages:python:Facto... (devel:languages:python:Factory is the "official" project for new versions of python, so if yore using factory repos, feel free to use this one as well) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com