Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0EDB9431FB6 for ; Mon, 10 Dec 2012 01:39:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36PU0HaWFMMs for ; Mon, 10 Dec 2012 01:39:45 -0800 (PST) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 70DEA431FAF for ; Mon, 10 Dec 2012 01:39:45 -0800 (PST) Received: by mail-wg0-f41.google.com with SMTP id ds1so736313wgb.2 for ; Mon, 10 Dec 2012 01:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=lWYvzsWHDbic7NWgxLMwiCH+b2TK6WujaOk3dGN5RPM=; b=axU2CdoIDxPticw2pv1BYLlhchwE9pOZDdQB3ew1NqzwvezwexsIxjPXmf7HmXqdVI IbGriHusTI6K7QwjiujgZAw/zyL3eBnwBUecIX71oCHZOpRI+11+qhxUPU2zKwznCefa ydUqPx/bdlIfUqPL7aGobNTja5Lz5Ur0y2FDZsOyzjXQXyJcAayCBps4zVOMmjG+diUt Sy79vOwg9HcFbeBrsSuQO6nF69SiKNi49cXUcfJ7gonKl9RRSwJmtolX/McWbLW2RZjI C4lyWeml9lLw+9m6oElL8g4/PoFYGrDIp6jwMDjlN3nRyMQCNnL0jIxdRQebmymyy1Lx /rlg== Received: by 10.216.82.130 with SMTP id o2mr5204360wee.129.1355132382841; Mon, 10 Dec 2012 01:39:42 -0800 (PST) Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36]) by mx.google.com with ESMTPS id t17sm10716523wiv.6.2012.12.10.01.39.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 01:39:41 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: "Jason A. Donenfeld" , From: Patrick Totzke In-Reply-To: References: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> <20121207092305.4942.42415@megatron> <20121208162055.14777.40147@brick.lan> <20121208174626.23685.31363@brick.lan> Message-ID: <20121210094134.11208.94252@megatron> User-Agent: alot/0.3.3+ Subject: Re: gmail importer script Date: Mon, 10 Dec 2012 09:41:34 +0000 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org, notmuch@notmuchmail.org, Rainer M Krug X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2012 09:39:46 -0000 Quoting Jason A. Donenfeld (2012-12-09 23:13:12) > On Sat, Dec 8, 2012 at 6:46 PM, Patrick Totzke = wrote: > = > ZeroDivisionError: float division by zero > = > = > Fixed it! Sorry about all this... Jeeze=C2=A0Louise.=C2=A0 thx > = > Another feature request: > Could you make the progressbar stuff optinal? in the end one will wan= t to > run this via cronjob > and this shouldn't print anything to stdout. > Also, I can pretty much recommend the 'logging' module. > = > = > Sure, but... >/dev/null doesn't cut it? I can add some more refined loggi= ng > capabilities if you want. It would, but its nicer not to load ressources you're not gonna use. Also, = progressbar 2.2 seems to be the newest version you see on a reasonably new = debian/ubuntu install.. Next exception.. do you have a bugtracker? (/me <3 github) ---------------------------------------------------- Logging in... Selecting all mail... Receiving message list: 24455 of 24455|####################################= ####|100% Time: 0:00:12 2.04 kemails/s Parsing message list and labels... Searching for local messages... Traceback (most recent call last): File "./gmail-notmuch.py", line 248, in main() File "./gmail-notmuch.py", line 75, in main if len(new_messages) =3D=3D 0: TypeError: object of type 'NoneType' has no len() ---------------------------------------------------- /p