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 C440D431FBF for ; Sat, 8 Dec 2012 09:04:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] 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 ieFm+2XurtJD for ; Sat, 8 Dec 2012 09:04:50 -0800 (PST) Received: from homiemail-a7.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by olra.theworths.org (Postfix) with ESMTP id 4B6C5431FAE for ; Sat, 8 Dec 2012 09:04:50 -0800 (PST) Received: from homiemail-a7.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTP id 91C0025C063 for ; Sat, 8 Dec 2012 09:04:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; s=zx2c4.com; bh=dVoXToo5t8yR+Heg8QI7gDP1YqU=; b=QF /EGZFWgLAKwdfjMfKnZcF0cUdNMYdl8ZGzBRgT0xSf4uSjJpPdIH0p0Tmjs50Ouo Ei0TIdF41o5gxeLFW2p3kA+FLu2ry0byKyq6Rejy3AWv+ceajmVluYy5gGmRT4kW /lknH00g/T4mGJmPH1DNATMGt3BWbg7bM0ojCFNwQ= Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jason@zx2c4.com) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id 7110725C062 for ; Sat, 8 Dec 2012 09:04:49 -0800 (PST) Received: by mail-ob0-f181.google.com with SMTP id oi10so1315932obb.26 for ; Sat, 08 Dec 2012 09:04:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.172.74 with SMTP id ba10mr5062228obc.83.1354986288457; Sat, 08 Dec 2012 09:04:48 -0800 (PST) Received: by 10.76.33.70 with HTTP; Sat, 8 Dec 2012 09:04:48 -0800 (PST) In-Reply-To: <20121208162055.14777.40147@brick.lan> References: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> <20121207092305.4942.42415@megatron> <20121208162055.14777.40147@brick.lan> Date: Sat, 8 Dec 2012 18:04:48 +0100 Message-ID: Subject: Re: gmail importer script From: "Jason A. Donenfeld" To: Patrick Totzke Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 08 Dec 2012 17:04:50 -0000 On Sat, Dec 8, 2012 at 5:20 PM, Patrick Totzke wrote: > I have two new errors: > > --------------------------------------------------------- > ./gmail-notmuch.py -u patricktotzke@gmail.com -p mypwd ~/mail/gmail/ > > I also tried with maildir param ~/mail/gmail/\[Google\ Mail\].All\ Mail > as this is where my all-mail maildir is, and i also tried an absolute path, all the same result. > > If I point it to the root of my notmuch directory I get: Pointing it at the root directory is what you want. In fact, I'm removing the argument from the script and having it just get that from the config. So the correct invocation will be: ./gmail-notmuch.py -u blabla -p password > File "./gmail-notmuch.py", line 147, in create_progressbar > return ProgressBar(maxval=total, widgets=[text + ": ", SimpleProgress(), Bar(), Percentage(), " ", ETA(), " ", FileTransferSpeed(unit="emails")]) > TypeError: __init__() got an unexpected keyword argument 'unit' You're probably running with an old version of python-statusbar. > > BTW: I had to change the hardcoded "[Gmail]" to "[Google Mail]" for it to get that far. Really? Are you in the UK? I'll have to do this dynamically using the XLIST imap extension.