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 94EF9431FBF for ; Sat, 8 Dec 2012 08:21:03 -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 P9jKydqctEBP for ; Sat, 8 Dec 2012 08:21:02 -0800 (PST) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A37E5431FAE for ; Sat, 8 Dec 2012 08:21:02 -0800 (PST) Received: by mail-wg0-f47.google.com with SMTP id dq11so762475wgb.2 for ; Sat, 08 Dec 2012 08:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:content-disposition:to:from:in-reply-to :cc:references:message-id:user-agent:subject:date; bh=t1PN6vT4MSQsUwY9lDLa3EFtmWhZT2zYNkMeHTAjB7E=; b=PRqKHBJxuUO/8QHPfEhlOkBzfQUlrtDFseFWWXjXeI6uDANUQTFoIaBxmXQhUI60x1 cG0f0LnWSxUECNeE9mF0fEqpnTFKG4r0nn9KLFdUma6+iDZc9Rf48D7c6Ra6d05FFdIG D4xvbLKoiuxu1Q0YGuWr1ETO0ZXuhh+vNDC2jSgMnziBV0G47pw40phSN5bBaZc6a/tb Bw3Zh1xb8A9xV4U72UWKRBAalobyV3+44bMh+gCP29xxRBd7R9IzCwp0kr+bnMTrqzDB WZs/lqHnAbtNRBaKcKeogBmyXydB04DZajXRsEypsskQiFgCg3NyZDAvUFm65DPO7gT/ yq1g== Received: by 10.180.94.226 with SMTP id df2mr3610058wib.11.1354983658822; Sat, 08 Dec 2012 08:20:58 -0800 (PST) Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com. [82.39.85.77]) by mx.google.com with ESMTPS id y3sm2714766wix.6.2012.12.08.08.20.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 08 Dec 2012 08:20:57 -0800 (PST) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="===============1675551967294765155==" MIME-Version: 1.0 Content-Disposition: inline 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> Message-ID: <20121208162055.14777.40147@brick.lan> User-Agent: alot/0.3.3+ Subject: Re: gmail importer script Date: Sat, 08 Dec 2012 16:20:55 +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: Sat, 08 Dec 2012 16:21:03 -0000 --===============1675551967294765155== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting Jason A. Donenfeld (2012-12-07 13:49:46) > Not sure what is causing this. My best guess is that your password was > incorrect and that I'm not checking the login return value. Yes, you're right, it was an incorrect passwd. > One thing you also might want to watch out for is > exceptions due to a locked notmuch index. > = > = > How do I do this? See e.g. here: https://github.com/pazz/alot/blob/master/alot/db/manager.py#= L163 I'm sure "afew" (https://github.com/teythoon/afew) does a similar thing. I have two new errors: --------------------------------------------------------- ./gmail-notmuch.py -u patricktotzke@gmail.com -p mypwd ~/mail/gmail/ Logging in... Selecting all mail... Error opening database at /home/pazz/mail/gmail/.notmuch: No such file or d= irectory Traceback (most recent call last): File "./gmail-notmuch.py", line 225, in main() File "./gmail-notmuch.py", line 56, in main database =3D notmuch.Database(destination, False, notmuch.Database.MODE= .READ_WRITE) File "/home/pazz/.local/lib/python2.7/site-packages/notmuch/database.py",= line 154, in __init__ self.open(path, mode) File "/home/pazz/.local/lib/python2.7/site-packages/notmuch/database.py",= line 214, in open raise NotmuchError(status) notmuch.errors.FileError --------------------------------------------------------- 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: --------------------------------------------------------- [~/projects/gmail-notmuch] ./gmail-notmuch.py -u patricktotzke@gmail.com -p= mypwd /home/pazz/mail Logging in... Selecting all mail... Traceback (most recent call last): File "./gmail-notmuch.py", line 225, in main() File "./gmail-notmuch.py", line 58, in main messages =3D discover_messages(imap, total) File "./gmail-notmuch.py", line 104, in discover_messages new_readline.progressbar =3D create_progressbar("Receiving message list= ", total).start() File "./gmail-notmuch.py", line 147, in create_progressbar return ProgressBar(maxval=3Dtotal, widgets=3D[text + ": ", SimpleProgre= ss(), Bar(), Percentage(), " ", ETA(), " ", FileTransferSpeed(unit=3D"email= s")]) TypeError: __init__() got an unexpected keyword argument 'unit' BTW: I had to change the hardcoded "[Gmail]" to "[Google Mail]" for it to g= et that far. HTH, /p --===============1675551967294765155== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlDDaOcACgkQlDQDZ9fWxap7fACeMTapo+x9flWn8lVKRg5/Ap6m poUAoLIPjuEIGWge29R3i0XceRNfZSNW =RGmo -----END PGP SIGNATURE----- --===============1675551967294765155==--