Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 123
View file
pykolab.spec
Changed
@@ -37,6 +37,7 @@ Source0: http://files.kolab.org/releases/%{name}-%{version}.tar.gz Patch0001: 0001-Configure-the-skin-based-on-the-available-skins.patch +Patch0002: 0002-Use-the-correct-scheme-hostname-and-port-if-so-confi.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch @@ -203,6 +204,7 @@ %setup -q %patch0001 -p1 +%patch0002 -p1 %build autoreconf -v @@ -526,7 +528,8 @@ %attr(0700,%{kolab_user},%{kolab_group}) %dir %{_var}/spool/pykolab/wallace %changelog -* Tue Dec 9 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-2 +* Tue Dec 9 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-3 +- Use the correct scheme, hostname and port if so configured - Set the skin to used based on the available skins * Mon Dec 8 2014 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.4-1
View file
0002-Use-the-correct-scheme-hostname-and-port-if-so-confi.patch
Added
@@ -0,0 +1,55 @@ +From 5db950d92bebf130d09fc7aeb53e3d0241aa84af Mon Sep 17 00:00:00 2001 +From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> +Date: Tue, 9 Dec 2014 19:18:08 +0100 +Subject: [PATCH 2/2] Use the correct scheme, hostname and port if so + configured + +--- + pykolab/imap/__init__.py | 21 +++++++++++++++++---- + 1 file changed, 17 insertions(+), 4 deletions(-) + +diff --git a/pykolab/imap/__init__.py b/pykolab/imap/__init__.py +index 23bf4a9..cf6ff07 100644 +--- a/pykolab/imap/__init__.py ++++ b/pykolab/imap/__init__.py +@@ -122,7 +122,15 @@ class IMAP(object): + + result = urlparse(uri) + +- if hasattr(result, 'hostname'): ++ if hasattr(result, 'netloc'): ++ scheme = result.scheme ++ if len(result.netloc.split(':')) > 1: ++ hostname = result.netloc.split(':')[0] ++ port = result.netloc.split(':')[1] ++ else: ++ hostname = result.netloc ++ ++ elif hasattr(result, 'hostname'): + hostname = result.hostname + else: + scheme = uri.split(':')[0] +@@ -131,12 +139,17 @@ class IMAP(object): + if not server == None: + hostname = server + +- if port == None: +- port = 993 +- + if scheme == None or scheme == "": + scheme = 'imaps' + ++ if port == None: ++ if scheme == "imaps": ++ port = 993 ++ elif scheme == "imap": ++ port = 143 ++ else: ++ port = 993 ++ + uri = '%s://%s:%s' % (scheme, hostname, port) + + # Get the credentials +-- +1.9.3 +
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +pykolab (0.7.4-0~kolab2) unstable; urgency=low + + * Use the correct scheme, hostname and port if so configured + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 9 Dec 2014 01:49:00 +0100 + pykolab (0.7.4-0~kolab1) unstable; urgency=low * New upstream release
View file
debian.series
Changed
@@ -1,1 +1,2 @@ cyrus-imapd.conf-cert-paths.patch -p1 +0002-Use-the-correct-scheme-hostname-and-port-if-so-confi.patch -p1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.