gmail importer script
Patrick Totzke
patricktotzke at gmail.com
Mon Dec 10 01:41:34 PST 2012
Quoting Jason A. Donenfeld (2012-12-09 23:13:12)
> On Sat, Dec 8, 2012 at 6:46 PM, Patrick Totzke <patricktotzke at gmail.com> wrote:
>
> ZeroDivisionError: float division by zero
>
>
> Fixed it! Sorry about all this... Jeeze Louise.
thx
>
> Another feature request:
> Could you make the progressbar stuff optinal? in the end one will want 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 logging
> 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.. </nitpick>
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 <module>
main()
File "./gmail-notmuch.py", line 75, in main
if len(new_messages) == 0:
TypeError: object of type 'NoneType' has no len()
----------------------------------------------------
/p
More information about the notmuch
mailing list