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 D1594429E55 for ; Tue, 28 Jun 2011 14:41:27 -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 uJCPUXXE-7lA for ; Tue, 28 Jun 2011 14:41:27 -0700 (PDT) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E4D97429E2A for ; Tue, 28 Jun 2011 14:41:26 -0700 (PDT) Received: by ewy8 with SMTP id 8so224815ewy.26 for ; Tue, 28 Jun 2011 14:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=PYbP+zY0A4RkQKL6F6KZimPeAN4s6MT4Hz1bXDE0cw0=; b=FjVWRYol5St+IhEGNbRkEXV6+h9NJ2ExF6OSNwV0gkjT79KrTk20Igs8G39Jdc2YZ/ O2UqAV87kdv7D1BILrOfqJD6Mc+dZwEgOnegOhq+CEXA7BZuZd289U5qH2y4nK/YPCXN x63WQiYUxE4YKfdE3bDrAWCJv5/AcSA/5UASA= Received: by 10.213.17.76 with SMTP id r12mr38221eba.2.1309297285639; Tue, 28 Jun 2011 14:41:25 -0700 (PDT) Received: from localhost (archx.demon.nl [83.160.190.30]) by mx.google.com with ESMTPS id s76sm433006eea.18.2011.06.28.14.41.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Jun 2011 14:41:24 -0700 (PDT) From: "Sander Boer" To: Carl Worth Subject: Re: notmuch Digest, Vol 20, Issue 57 Organization: From the desk of Sander Boer References: <87wrg5905c.fsf@yoom.home.cworth.org> Date: Tue, 28 Jun 2011 23:43:52 +0200 In-Reply-To: <87wrg5905c.fsf@yoom.home.cworth.org> (Carl Worth's message of "Tue, 28 Jun 2011 13:22:23 -0700") Message-ID: User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 21:41:28 -0000 Carl Worth writes:> [snip] > First, it's important to understand that any friction here comes from > Gmail exposing its tags as folders, (which in turn could be the lack of > availability of a more tag-aware protocol than imap). > I agree that this is the key issue here. I was hoping that google somehow was able to expose the tags in the "All Mail" folder, like the headers that are gmail specific: X-pstn-nxpr and X-pstn-nxp (which contains a hash) for instance. > So, let's say you've done an imap-based fetch of all of your mail and > now have it in several folders corresponding to the various tags you > made in the Gmail interface, (and you've run "notmuch new" to create a > notmuch database of all of that). > > At that point, you can search (with current notmuch from git---and soon > to be released as notmuch 0.6) on the folder names. This allows you to > do a search based on a Gmail tag. For example, you might have an > "important" tag in Gmail which you could search with: > > notmuch search folder:important > ah, I have the ubuntu version, will update to git soon. > If you wanted to make an actual notmuch tag based on those search > results, you could do that as well: > > notmuch tag +important folder:important > > And you could even do that on a regular basis, (for example in some > script that sucks down new email from Gmail). In this case you might > want to avoid re-tagging pre-tagged mail by amending the search terms: > > notmuch tag +important folder:important and not tag:important > > (Note that this is an optimization that notmuch could be making > automatically, and that's something I'd love to see happen in notmuch at > some point.) > > 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 > > 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. > > 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