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 4EC7E429E2A for ; Tue, 28 Jun 2011 13:22:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 K22ykyWTR9A4 for ; Tue, 28 Jun 2011 13:22:36 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id C45CE429E25 for ; Tue, 28 Jun 2011 13:22:36 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id CFDEF29A608; Tue, 28 Jun 2011 13:22:35 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id BFCA12541A8; Tue, 28 Jun 2011 13:22:35 -0700 (PDT) From: Carl Worth To: Sander Boer , notmuch@notmuchmail.org Subject: Re: notmuch Digest, Vol 20, Issue 57 In-Reply-To: References: User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Tue, 28 Jun 2011 13:22:23 -0700 Message-ID: <87wrg5905c.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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 20:22:37 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 27 Jun 2011 09:43:41 +0200, Sander Boer wrote: > For instance, is this a possibility sync gmail tags with notmuch tags ? > As fas as I am aware Gmail exposes its tags through imap folders, I am > not too thrilled about the mixing of paradigms (folders vs tags) and it > would be great if it could be aligned. I'm not a gmail user myself, but I can describe some of the options available. 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). 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 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=3Dfiles 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? =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4KN/8ACgkQ6JDdNq8qSWjdtgCeIju5ebRrxLfOHP4tTW6270xA XSwAni0K6/mO6zSFeI9VyalqvgtFilzV =0EYy -----END PGP SIGNATURE----- --=-=-=--