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 BD8F7431FB6 for ; Sat, 8 Dec 2012 05:15:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 d6LKGsRVQHyN for ; Sat, 8 Dec 2012 05:15:28 -0800 (PST) Received: from homiemail-a6.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by olra.theworths.org (Postfix) with ESMTP id 4BAAE431FAE for ; Sat, 8 Dec 2012 05:15:28 -0800 (PST) Received: from homiemail-a6.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTP id 7DAF659806C for ; Sat, 8 Dec 2012 05:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; s=zx2c4.com; bh=wLP4l8oDlowy01q1ULVh2OHlW90=; b=wC m4vE1vqi096q3h/nZOi1cxrlVpGl12EHlD1XY7eZdusVItP011tbzwFhjkX7FRPs xjX/Z/mNCzP3MLMx5YdHKA3w2lSJWGuYazdB++j+XVrUMQaL0Gpm9rLfaRAloJwv qySPDIo5zLBwuIyg6CBiZIFtQCtjhgOSnVJzzNmrI= Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com [209.85.219.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jason@zx2c4.com) by homiemail-a6.g.dreamhost.com (Postfix) with ESMTPSA id 5D31B598069 for ; Sat, 8 Dec 2012 05:15:27 -0800 (PST) Received: by mail-oa0-f53.google.com with SMTP id j6so1305652oag.26 for ; Sat, 08 Dec 2012 05:15:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.172.164 with SMTP id bd4mr4234676oec.51.1354972526165; Sat, 08 Dec 2012 05:15:26 -0800 (PST) Received: by 10.76.33.70 with HTTP; Sat, 8 Dec 2012 05:15:26 -0800 (PST) In-Reply-To: References: <50c16b03.47e2440a.6038.ffffedce@mx.google.com> <50C1AEA0.9090508@gmail.com> <50C1F5C3.6010201@gmail.com> Date: Sat, 8 Dec 2012 14:15:26 +0100 Message-ID: Subject: Re: gmail importer script From: "Jason A. Donenfeld" To: Rainer@krugs.de Content-Type: text/plain; charset=ISO-8859-1 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org, notmuch@notmuchmail.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: Sat, 08 Dec 2012 13:15:28 -0000 > I actually prefer this approach, but I think it would be more useful to > leave the syncing of the emails to a different program, and then just > managing the labels / tags with your tool (which is notmuch territory). So > the workflow would be: > So, implementing the mail sync in this script would, as I see it, kind of > reinventing the wheel. You're misunderstanding me. Let me make it very clear what the script does. Actually why don't you just read the source code? Please? Well, anyway, here: - It looks in gmail and asks it which messages gmail has - It downloads those messages - It applies gmail's labels to those messages as tags The end. Along the way it has some smart things to reduce redundant downloads. For more information, consult the source code.