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 130B7431FB6 for ; Fri, 7 Dec 2012 00:54:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.202 X-Spam-Level: * X-Spam-Status: No, score=1.202 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001] 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 PKPAJo8j04TY for ; Fri, 7 Dec 2012 00:54:12 -0800 (PST) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0BF7D431FAE for ; Fri, 7 Dec 2012 00:54:12 -0800 (PST) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TgthM-0000MJ-CD for notmuch@notmuchmail.org; Fri, 07 Dec 2012 09:54:20 +0100 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 09:54:20 +0100 Received: from R.M.Krug by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Dec 2012 09:54:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: notmuch@notmuchmail.org From: Rainer M Krug Subject: Re: gmail importer script Date: Fri, 07 Dec 2012 09:53:52 +0100 Lines: 45 Message-ID: <50C1AEA0.9090508@gmail.com> References: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> X-Enigmail-Version: 1.5a1pre Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org 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: Fri, 07 Dec 2012 08:54:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/12/12 05:05, Kushal Kumaran wrote: > "Jason A. Donenfeld" 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-----