Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: [stdlib-sig] Can imaplib be improved? Date: Tue, 29 Mar 2016 14:55:57 -0400 Lines: 25 Message-ID: References: <1458873222.2158998.559175002.3C7CEAF4@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de PeObeEctmYk69vQbKUhjSgBAOUVFxisB6cTZ4TsOJXSg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'url:pypi': 0.03; 'url:sourceforge': 0.03; 'url:bitbucket': 0.05; 'scripts': 0.09; 'backwards': 0.09; 'received:internal': 0.09; 'runtime': 0.09; 'url:github': 0.09; 'dependency,': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'reproduce': 0.16; 'scratch': 0.16; 'subject:sig': 0.16; 'wrote:': 0.16; 'subject:] ': 0.19; 'library': 0.20; '(or': 0.23; 'finished': 0.23; "haven't": 0.24; 'tried': 0.24; 'header:In- Reply-To:1': 0.24; 'error': 0.27; 'class.': 0.30; "can't": 0.32; 'url:python': 0.33; 'tue,': 0.34; 'could': 0.35; 'installing': 0.35; 'something': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'starting': 0.37; 'received:66': 0.38; 'enough': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'header:Message-Id:1': 0.61; 'mar': 0.65; 'remember,': 0.66; 'discovered': 0.83; 'pip': 0.84; 'edwards': 0.91 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=EB48jahbrE3GZeeQ+V6Th4QYWWM=; b=hu97Wg JHDGFhQp/oNDk6oN4hYO11Z8o5VeD8zCgCTIRgKAdltgN91tyrKquzL5T+Lr588G VcHIe/zNTPkfgnb79pQJ+kZaeSnfmQTMmnGbGy04lcVqf3F54Du7jugtA7c+DRek 2Pi+kh7w4D34RC8wB8gT0rf86E2MEBUhvTQQE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=EB48jahbrE3GZee Q+V6Th4QYWWM=; b=FVswKqYa2yLuAEPMHBJkYpUnlGge1V4G0iF3774+9JyZDCH jA2jq4I9HjhkYirDz3yBe/YKoBWnHjqe6+Vhwl7uVYP/nY0CQWYXVbHBDZaJUVbO vtzd3y/IIjQR+WgBU1Ml+ahvTy8u8ttDMCgwLsRbq5vrQaGU3LPF713lZgPY= X-Sasl-Enc: vMV+7bE4j2SHvLHiCYG094WLUbZZnV4MwFCqD5piaR5x 1459277757 X-Mailer: MessagingEngine.com Webmail Interface - ajax-e7e8c9db In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105997 On Tue, Mar 29, 2016, at 14:45, Grant Edwards wrote: > I think giving up on backwards compatiblity and starting from scratch > is the best idea. > > I like imaplib2 > > https://pypi.python.org/pypi/imaplib2 > https://github.com/bcoe/imaplib2 > https://sourceforge.net/projects/imaplib2/ > > imapclient is pretty nice to work with: > > https://pypi.python.org/pypi/IMAPClient > https://bitbucket.org/mjs0/imapclient > http://freshfoo.com/presentations/imapclient-intro/#/ > > Perhaps it (or something like it) could be added to the std library > alongside the current imaplib. I couldn't get imapclient to install; I got some kind of error (I can't remember, and can't reproduce now because it "thinks" it was successful) from pip installing some crypto dependency, and a runtime error not finding a SSLContext class. I haven't tried imaplib2 yet; by the time I discovered it my scripts were already mature enough that I just finished with what I had.