Hello community,

here is the log from the commit of package python-managesieve.1485 for 
openSUSE:12.2:Update checked in at 2013-04-02 15:47:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/python-managesieve.1485 (Old)
 and      /work/SRC/openSUSE:12.2:Update/.python-managesieve.1485.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-managesieve.1485", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2013-02-26 18:15:11.936010755 +0100
+++ 
/work/SRC/openSUSE:12.2:Update/.python-managesieve.1485.new/python-managesieve.changes
      2013-04-02 15:47:42.000000000 +0200
@@ -0,0 +1,53 @@
+-------------------------------------------------------------------
+Sun Mar 24 10:05:22 UTC 2013 - [email protected]
+
+- add python-managesieve-add-port-to-sieveshell.patch which adds
+  a --port option to sieveshell for overriding the default port
+  (bnc#811230)
+
+-------------------------------------------------------------------
+Tue Jan 17 10:37:38 UTC 2012 - [email protected]
+
+- Update license to "GPL-2.0+ and Python-2.0" (bnc#741277)
+
+-------------------------------------------------------------------
+Thu Jan 12 14:36:45 UTC 2012 - [email protected]
+
+- Spec file cleanup:
+  * BuildRequire python-distribute instead of setuptools
+  * Removed %clean section (has sane default)
+  * Removed authors from description
+  * Ran spec-cleaner
+
+-------------------------------------------------------------------
+Thu Jan 12 11:31:10 UTC 2012 - [email protected]
+
+- change license to be in spdx.org format
+
+-------------------------------------------------------------------
+Fri Nov 26 17:37:56 UTC 2010 - [email protected]
+
+- added separate changelog
+
+-------------------------------------------------------------------
+Fri Jan 22 00:00:00 UTC 2010 - [email protected]
+
+- Specified build dependencies more precisely
+
+-------------------------------------------------------------------
+Thu Jan 07 00:00:00 UTC 2010 - [email protected]
+
+- Update to version 0.4.2
+  - includes the fix for socket.ssl deprecation warnings
+
+-------------------------------------------------------------------
+Wed Dec 30 00:00:00 UTC 2009 - [email protected]
+
+- Added patch to fix socket.ssl deprecation warnings on Python
+  >= 2.6
+
+-------------------------------------------------------------------
+Wed Dec 24 00:00:00 UTC 2009 - [email protected]
+
+- initial packaging of python-managesieve
+

New:
----
  managesieve-0.4.2.tar.bz2
  python-managesieve-add-port-to-sieveshell.patch
  python-managesieve.changes
  python-managesieve.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-managesieve.spec ++++++
#
# spec file for package python-managesieve
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           python-managesieve
Version:        0.4.2
Release:        0
Summary:        Python Module Implementing the ManageSieve Protocol
License:        GPL-2.0+ and Python-2.0
Group:          Development/Libraries/Python
Url:            http://python-managesieve.origo.ethz.ch/wiki/python_managesieve
Source:         
http://download.origo.ethz.ch/python-managesieve/1573/managesieve-0.4.2.tar.bz2
# PATCH-FEATURE-UPSTREAM python-managesieve-add-port-to-sieveshell.patch 
[email protected] -- Add --port option to sieveshell for overriding the default 
port
Patch0:         python-managesieve-add-port-to-sieveshell.patch
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
python-managesieve is a Python module implementing the ManageSieve client
protocol. It also includes an user application (the interactive sieveshell).

%prep
%setup -q -n managesieve-%{version}
%patch0 -p1

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc draft-martin-managesieve-07.txt HISTORY README TODO
%{_bindir}/sieveshell
%{python_sitelib}/*

%changelog
++++++ python-managesieve-add-port-to-sieveshell.patch ++++++
Index: managesieve-0.4.2/sieveshell
===================================================================
--- managesieve-0.4.2.orig/sieveshell
+++ managesieve-0.4.2/sieveshell
@@ -225,7 +225,7 @@ __command_map = {
 
 
 def shell(auth, user=None, passwd=None, realm=None,
-          authmech='', server='', use_tls=0):
+          authmech='', server='', use_tls=0, port=managesieve.SIEVE_PORT):
     """Main part"""
 
     def cmd_loop():
@@ -280,7 +280,7 @@ def shell(auth, user=None, passwd=None,
             # Ctrl-D pressed
             print # clear line
             return
-        sieve = managesieve.MANAGESIEVE(server, use_tls=use_tls)
+        sieve = managesieve.MANAGESIEVE(server, use_tls=use_tls, port=port)
         print 'Server capabilities:',
         for c in sieve.capabilities: print c,
         print
@@ -330,17 +330,22 @@ def main():
                             "commands from SCRIPT, and exit when done.")
     parser.add_option('--use-tls', '--tls', action="store_true",
                       help="Switch to TLS if server supports it.")
+    parser.add_option('--port', type="int", default=managesieve.SIEVE_PORT,
+                      help="The TCP port to connect to (default: %d)." % 
managesieve.SIEVE_PORT)
     options, args = parser.parse_args()
 
     if options.auth_mech and not options.auth_mech.upper() in 
managesieve.AUTHMECHS:
         parser.error("Authentication mechanism %s is not supported. Choose one 
of %s" % (options.auth_mech.upper(), ', '.join(managesieve.AUTHMECHS)))
 
+    if not (0 <= options.port <= 65535):
+        parser.error("The TCP port must be between 0 and 65535")
+
     if len(args) != 1:
         parser.error("Argument 'server' missing.")
     server = args[0]
 
     shell(options.authname, options.username, options.passwd,
-          options.realm, options.auth_mech, server, options.use_tls)
+          options.realm, options.auth_mech, server, options.use_tls, 
options.port)
     return 0
 
 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to