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 CABEB429E5B for ; Tue, 28 Jun 2011 15:38:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 AKjoBe32zhpf for ; Tue, 28 Jun 2011 15:38:34 -0700 (PDT) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 113BA429E55 for ; Tue, 28 Jun 2011 15:38:34 -0700 (PDT) Received: by iyf40 with SMTP id 40so608340iyf.26 for ; Tue, 28 Jun 2011 15:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=+uwVEu8IwmBF8pQq/nT/i59ctxvkdl0VbBR2KYhMkqs=; b=tfLeJ5SovsGzGD3uKTfGQLIKuAlZzzxfxxCuqJZorqNAnhjmVWYvOq87jLLjx5Ta6n /kH2YyETJigfUxzOj2h47Vt+xGstLGYuTPfWp5jFIzkxj9vsG6ra603ZcuNoO2ROOMmF tJTVs8JU3Z/zWLEWXky9r9H8UL1zoec0QWKSw= Received: by 10.43.135.66 with SMTP id if2mr111779icc.34.1309300712865; Tue, 28 Jun 2011 15:38:32 -0700 (PDT) Received: from localhost ([74.205.145.146]) by mx.google.com with ESMTPS id ly7sm486422icb.12.2011.06.28.15.38.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Jun 2011 15:38:32 -0700 (PDT) From: Mark Anderson To: Sander Boer , Carl Worth Subject: Re: notmuch Digest, Vol 20, Issue 57 In-Reply-To: References: <87wrg5905c.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.5-283-gb744eac (http://notmuchmail.org) Emacs/23.2.1 (i686-pc-linux-gnu) Date: Tue, 28 Jun 2011 16:38:30 -0600 Message-ID: <87hb79intl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 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: Tue, 28 Jun 2011 22:38:35 -0000 On Tue, 28 Jun 2011 23:43:52 +0200, "Sander Boer" wrote: > Carl Worth writes:> > > > > Hopefully it's clear enough that you could do the above in a script that > > loops over all of your existing tags. > > > > And if you were doing a one-time switch from Gmail to notmuch that would > > be all you would need. > > > > I don't know if you're looking to also push tags added via some notmuch > > interface back to Gmail, (does Gmail even provide a mechanism for doing > > that?). If so, then you'd need something that took notmuch tags and made > > copies of the message in the appropriate files. That would hopefully be > > easy to script based on the output of: > > > > notmuch search --output=files tag:important You'd probably actually want this: notmuch search --output=files tag:importand and not folder:important Although until the folder: tag bug is fixed, it won't be as definitive as you want, because once the message was in folder:important, it doesn't really leave. However, With my recent patch you'll also get more filenames than you want for this behavior. If you already have the mail in All Mail, Inbox, my_special_tag, and not_that_tag, do you want 4 links or copies of the message placed in the folder for Important? I had thought of this, because I am a Gmail/notmuch user (well, somewhat, I have some of the infra in place, but it's not polished, I usually end up using phone or web) I had briefly considered adding another output format "file", just to get a single file for each message in the db, but the file/files distinction feels a bit niggling. Perhaps it should be changed to "files" and "filelists" or something else more clear. It was nagging me as I implemented the fix I submitted, which looks like it has been pushed. Any comments? I don't think I have time to code any changes to this for a couple days. > > I think my short answer is that it's fairly easy to convert from Gmail > > tags to notmuch tags as part of a one-time import. Doing this on a > > continual basis might benefit from writing a few scripts, and I don't > > know if anyone has written those scripts yet. Yes, you need a label->folder as well as a folder->label part of the script. I think of it as: 1. label->folder sync 2. offlineimap (pushes label changes, pulls new mail) 3. folder->label sync There is certainly room for some conflict, if you use multiple interfaces. So watch your head. -Mark > > > > Would any Gmail+notmuch users care to add anything to the conversation? > > > > -Carl > > > now using gnus still, b/c notmuch does not build for the N900 (bummer) > > -- > Sander Boer > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch