Re: gmail importer script

Subject: Re: gmail importer script

Date: Mon, 10 Dec 2012 09:41:34 +0000

To: Jason A. Donenfeld

Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org, notmuch@notmuchmail.org, Rainer M Krug

From: Patrick Totzke


Quoting Jason A. Donenfeld (2012-12-09 23:13:12)
> On Sat, Dec 8, 2012 at 6:46 PM, Patrick Totzke <patricktotzke@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

Thread: