Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'subject:skip:c 10': 0.07; 'python': 0.09; 'library?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'from:addr:pitrou.net': 0.16; 'from:addr:solipsis': 0.16; 'from:name:antoine pitrou': 0.16; 'message-id:@post.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'self.sslobj': 0.16; 'sense,': 0.16; 'ssl_version': 0.16; 'martin': 0.16; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.28; 'writes:': 0.29; 'url:python': 0.32; 'to:addr:python- list': 0.33; 'server': 0.35; 'there': 0.35; 'add': 0.36; 'received:org': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'charset:us-ascii': 0.36; 'option': 0.37; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'subjectcharset:utf-8': 0.72; 'subject::': 0.83; 'antoine.': 0.84; 'received:88.163': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Antoine Pitrou Subject: Re: =?utf-8?b?SU1BUDRfU1NM?= and OpenSSL compatibility Date: Tue, 26 Feb 2013 12:04:15 +0000 (UTC) References: <20130225224327.GA10266@fama.tangosoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 88.163.232.20 (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361880282 news.xs4all.nl 6864 [2001:888:2000:d::a6]:41746 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39943 W. Martin Borgert debian.org> writes: > > When I add an ssl_version argument to the call to > ssl.wrap_socket() in imaplib.IMAP4_SSL.open(), I can connect to > the Exchange server without problems: > > self.sslobj = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, > ssl_version = ssl.PROTOCOL_SSLv3) > > Would it make sense, to make this change in the Python standard > library? There is already the ssl_context option for that: http://docs.python.org/3.3/library/imaplib.html#imaplib.IMAP4_SSL Regards Antoine.