Re: gmail importer script

Subject: Re: gmail importer script

Date: Fri, 07 Dec 2012 09:53:52 +0100

To: notmuch@notmuchmail.org

Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org

From: Rainer M Krug


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/12/12 05:05, Kushal Kumaran wrote:
> "Jason A. Donenfeld" <Jason@zx2c4.com> writes:
> 
>> Hi folks,
>> 
>> I wrote a script that imports emails and tags from gmail. It's resumable and appears to be
>> working reasonably well. I could use some experienced eyes looking at it, as my first
>> exposure to notmuch was just a few hours ago.
>> 
>> http://git.zx2c4.com/gmail-notmuch/tree/gmail-notmuch.py
>> 
> 
> Not specific to notmuch, but not every gmail user has a @gmail.com or @googlemail.com email
> address.  Google Apps users can have arbitrary email addresses, and still use gmail's imap and
> web interface.
> 
> I finished syncing my gmail locally (using offlineimap), and creating tags by hand not one day
> ago, or I would certainly have tried out this script.
> 

Sounds interesting.

I don't know much python, so excuse my questions:

1) are multiple downloads of an email done, if the mail has multiple labels?
2) I am downloading with the patched notmuch (to add x-keywords containing the labels) only the
"All Mail" folder - does your script use this information (if present) to tag the emails?
3) are label changes in gmail synched into the local emails?
4) I assume, local changes are not synced to gmail?
5) how are conflicts handled (local tag changes versus label changes on gmail)?

Thanks,

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlDBrqAACgkQoYgNqgF2egqrEwCeOSr5TGZgAIaRvzHCl1Nv+DBk
ko4AnRT0FMBwYNRGzSclXxZXzaH0Q23x
=Sx0B
-----END PGP SIGNATURE-----


Thread: