1 Return-Path: <patricktotzke@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 2CB60431FAF
\r
6 for <notmuch@notmuchmail.org>; Sat, 8 Dec 2012 09:46:34 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id tw1nEuSOW6W5 for <notmuch@notmuchmail.org>;
\r
17 Sat, 8 Dec 2012 09:46:32 -0800 (PST)
\r
18 Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com
\r
19 [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
20 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
21 CA100431FAE for <notmuch@notmuchmail.org>; Sat, 8 Dec 2012 09:46:31 -0800
\r
23 Received: by mail-wg0-f47.google.com with SMTP id dq11so788199wgb.2
\r
24 for <notmuch@notmuchmail.org>; Sat, 08 Dec 2012 09:46:30 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=content-type:mime-version:content-disposition:to:from:in-reply-to
\r
27 :cc:references:message-id:user-agent:subject:date;
\r
28 bh=5qNur1siz19bNkD/1A1/+bLah/Y1kL8KBM86sEskoQU=;
\r
29 b=BgLLhxFznM+wm5slkZ1u1YvwvcQLtQqiwhuurMHAZS/J3erC9jdF0Rul3+PZBhHCWI
\r
30 rqw7+d4sih8FsJ2AdBYWrBdVId6VAQeviGF0P/FL8NwMhm0IqB/jNvYvgLeja92Uum4y
\r
31 HTgel9Snqavyyz5OuVoyvjaGpFowp4YetfA54DSFO8CUbiJ4SebuuS3qvBk8XmI/tvjk
\r
32 JEQA4kPW9L/Xm4rekwJboFESkDdDm+6LvUQJMA9pSGsvOlErQYxXS0azMNablv4HKn+H
\r
33 w8pud3dWT9Sqivc7+GQ9gPQNP0SGxCObM441hHD0/p7s/S4QD+gsrQ2EijeeQC8dgmiQ
\r
35 Received: by 10.216.27.81 with SMTP id d59mr3384012wea.165.1354988789441;
\r
36 Sat, 08 Dec 2012 09:46:29 -0800 (PST)
\r
37 Received: from localhost (cpc14-sgyl28-2-0-cust332.18-2.cable.virginmedia.com.
\r
39 by mx.google.com with ESMTPS id o3sm3016267wic.0.2012.12.08.09.46.27
\r
40 (version=TLSv1/SSLv3 cipher=OTHER);
\r
41 Sat, 08 Dec 2012 09:46:28 -0800 (PST)
\r
42 Content-Type: multipart/signed; protocol="application/pgp-signature";
\r
43 micalg="pgp-sha1"; boundary="===============3026124254202881872=="
\r
45 Content-Disposition: inline
\r
46 To: "Jason A. Donenfeld" <Jason@zx2c4.com>,
\r
47 From: Patrick Totzke <patricktotzke@gmail.com>
\r
49 <CAHmME9obAbvmXDJnQDGhSonADQYJr55gT4m62jkiWv0k8zrPpA@mail.gmail.com>
\r
51 <CAHmME9om0twqigr0L2pwXtbj4ceBVVFz0HqxkwFfB-AnusP2VQ@mail.gmail.com>
\r
52 <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com>
\r
53 <20121207092305.4942.42415@megatron>
\r
54 <CAHmME9q6QN1YE=+_r1zHNdhc9hrJgEWxQ_L4rxsjJWOFRD-ZnA@mail.gmail.com>
\r
55 <20121208162055.14777.40147@brick.lan>
\r
56 <CAHmME9obAbvmXDJnQDGhSonADQYJr55gT4m62jkiWv0k8zrPpA@mail.gmail.com>
\r
57 Message-ID: <20121208174626.23685.31363@brick.lan>
\r
58 User-Agent: alot/0.3.3+
\r
59 Subject: Re: gmail importer script
\r
60 Date: Sat, 08 Dec 2012 17:46:26 +0000
\r
61 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org,
\r
62 notmuch@notmuchmail.org, Rainer M Krug <R.M.Krug@gmail.com>
\r
63 X-BeenThere: notmuch@notmuchmail.org
\r
64 X-Mailman-Version: 2.1.13
\r
66 List-Id: "Use and development of the notmuch mail system."
\r
67 <notmuch.notmuchmail.org>
\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
71 List-Post: <mailto:notmuch@notmuchmail.org>
\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
75 X-List-Received-Date: Sat, 08 Dec 2012 17:46:34 -0000
\r
77 --===============3026124254202881872==
\r
78 Content-Type: text/plain; charset="utf-8"
\r
80 Content-Transfer-Encoding: quoted-printable
\r
82 Quoting Jason A. Donenfeld (2012-12-08 17:04:48)
\r
83 > On Sat, Dec 8, 2012 at 5:20 PM, Patrick Totzke <patricktotzke@gmail.com> =
\r
85 > > I have two new errors:
\r
87 > > ---------------------------------------------------------
\r
88 > > ./gmail-notmuch.py -u patricktotzke@gmail.com -p mypwd ~/mail/gmail/
\r
90 > > I also tried with maildir param ~/mail/gmail/\[Google\ Mail\].All\ Mail
\r
91 > > as this is where my all-mail maildir is, and i also tried an absolute p=
\r
92 ath, all the same result.
\r
94 > > If I point it to the root of my notmuch directory I get:
\r
97 > Pointing it at the root directory is what you want. In fact, I'm
\r
98 > removing the argument from the script and having it just get that from
\r
99 > the config. So the correct invocation will be:
\r
102 > ./gmail-notmuch.py -u blabla -p password
\r
107 > > File "./gmail-notmuch.py", line 147, in create_progressbar
\r
108 > > return ProgressBar(maxval=3Dtotal, widgets=3D[text + ": ", SimplePr=
\r
109 ogress(), Bar(), Percentage(), " ", ETA(), " ", FileTransferSpeed(unit=3D"e=
\r
111 > > TypeError: __init__() got an unexpected keyword argument 'unit'
\r
114 > You're probably running with an old version of python-statusbar.
\r
116 I just installed it from ubuntu 12.04's repository. the version was 2.2-2.
\r
117 Installed from pip now, and it seems ok. you'll want to make more specific =
\r
118 dependencies at some
\r
122 > > BTW: I had to change the hardcoded "[Gmail]" to "[Google Mail]" for it =
\r
126 > Really? Are you in the UK? I'll have to do this dynamically using the
\r
127 > XLIST imap extension.
\r
129 Yea, but its a *really* old account I first got from google.de.
\r
130 Reading this dynamically would def. help.
\r
134 -----------------------------------------------------------------
\r
136 Traceback (most recent call last):
\r
137 File "./gmail-notmuch.py", line 246, in <module>
\r
139 File "./gmail-notmuch.py", line 74, in main
\r
140 new_messages =3D retag_old_messages(database, messages, destination)
\r
141 File "./gmail-notmuch.py", line 176, in retag_old_messages
\r
142 progressbar.start()
\r
143 File "/usr/local/lib/python2.7/dist-packages/progressbar/__init__.py", li=
\r
146 File "/usr/local/lib/python2.7/dist-packages/progressbar/__init__.py", li=
\r
148 self.fd.write(self._format_line() + '\r')
\r
149 File "/usr/local/lib/python2.7/dist-packages/progressbar/__init__.py", li=
\r
150 ne 243, in _format_line
\r
151 widgets =3D ''.join(self._format_widgets())
\r
152 File "/usr/local/lib/python2.7/dist-packages/progressbar/__init__.py", li=
\r
153 ne 223, in _format_widgets
\r
154 widget =3D format_updatable(widget, self)
\r
155 File "/usr/local/lib/python2.7/dist-packages/progressbar/widgets.py", lin=
\r
156 e 38, in format_updatable
\r
157 if hasattr(updatable, 'update'): return updatable.update(pbar)
\r
158 File "/usr/local/lib/python2.7/dist-packages/progressbar/widgets.py", lin=
\r
160 return '%3d%%' % pbar.percentage()
\r
161 File "/usr/local/lib/python2.7/dist-packages/progressbar/__init__.py", li=
\r
162 ne 208, in percentage
\r
163 return self.currval * 100.0 / self.maxval
\r
164 ZeroDivisionError: float division by zero
\r
165 --------------------------------------------------------------------------
\r
169 Another feature request:
\r
170 Could you make the progressbar stuff optinal? in the end one will want to r=
\r
171 un this via cronjob
\r
172 and this shouldn't print anything to stdout.
\r
173 Also, I can pretty much recommend the 'logging' module.
\r
178 --===============3026124254202881872==
\r
180 Content-Transfer-Encoding: 7bit
\r
181 Content-Description: signature
\r
182 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
\r
184 -----BEGIN PGP SIGNATURE-----
\r
185 Version: GnuPG v1.4.11 (GNU/Linux)
\r
187 iEYEABECAAYFAlDDfPIACgkQlDQDZ9fWxaoN0wCfSDu1vUlfji9mYFPRdlzM6LFC
\r
188 k6kAoKDA7JIWG/JMQQn1S8SmyxTfrnco
\r
190 -----END PGP SIGNATURE-----
\r
192 --===============3026124254202881872==--
\r