From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 006C0431FAF for ; Tue, 27 Nov 2012 23:32:19 -0800 (PST) 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 dhOJP9eYi5UE for ; Tue, 27 Nov 2012 23:32:19 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 1F556431FAE for ; Tue, 27 Nov 2012 23:32:19 -0800 (PST) Received: by mail-ee0-f53.google.com with SMTP id c50so8348735eek.26 for ; Tue, 27 Nov 2012 23:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=JW6zXmS+DwFfFWj0k2mmIL0Xg8yzacBregRB6mGZ/6A=; b=ZQq6hDTUy5W0UCraFuEdwnCjudiN7kMID+X4uJS7VCeLy8hyhHuq1je/Nzl1aIEKZw aO9FEFwNY/oNTxVo2vgTaQNC6mLQGcboczaghYlS+YjYPkfr0YxJPlck+XIcLyjzHLO5 GA6ImDlSii+TS4271cm8hh80zk1ubyOJQ9szumI6n0QWG+yyqPYYkwOcUlbaDFIiNMoT 8UFL5YiPVstcquIv3GPPtUurRB+H66WtCaLeYcu6nms7RLnY5SsR28NwzQeEliucYztm ST2SMopgKJQLS45eZ1PQhZyPrIR9+oET1LI+0+id7XSq6DvjI1+YlJsqDnbwB/JC+yPW Vymg== Received: by 10.14.210.200 with SMTP id u48mr66338102eeo.29.1354087937991; Tue, 27 Nov 2012 23:32:17 -0800 (PST) Received: from ?IPv6:2a01:e35:8baa:b070:bccc:a985:fb1b:61f8? ([2a01:e35:8baa:b070:bccc:a985:fb1b:61f8]) by mx.google.com with ESMTPS id 46sm45459450eeg.4.2012.11.27.23.32.16 (version=SSLv3 cipher=OTHER); Tue, 27 Nov 2012 23:32:17 -0800 (PST) Message-ID: <50B5BDFF.1080802@gmail.com> Date: Wed, 28 Nov 2012 08:32:15 +0100 From: Rainer M Krug User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Michal Nazarewicz Subject: Re: gmail label support patch available for oflineimap References: <87zk24ctko.fsf@convex-new.cs.unb.ca> <50B3871B.2050509@gmail.com> <87r4ngcl00.fsf@convex-new.cs.unb.ca> <50B48627.9040409@gmail.com> In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Rainer@krugs.de List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 07:32:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/11/12 21:01, Michal Nazarewicz wrote: > On Tue, Nov 27 2012, Rainer M Krug wrote: >> I saw on the offlineimap mailing list, that somebody is using this approach (x-header) to >> sync the gmail labels and to use them in his email client - so I thought, why not read them >> as tags into notmuch and sync tgs back, so one would have a sync between notmuch tags and >> gmail labels. But there was some objections and it was questioned why offlineimap for this, >> and not notmuch - and frankly, I don't hava any preferences. If it is i[plemented in >> offlineimap and notmuch uses it, fine with me. If offlineimap stays as it is and notmuch >> reads the labels directly, absolutely no problem. I am merely intersted in the outcome - sync >> of notmuch tags with gmail labels - whatever the path is. > > Ah, OK. > > I just want to say that having notmuch communicate with Gmail is terrible idea, since this > would mean duplicating of jobs that offlineimap and notmuch do. My sentiments, notmuch is doing realy good what it is doing, and adding gmail / other server communication is not the best idea. > > I could see some *other* tool, besides notmuch and offlineimap, which connects to Gmail to > fetch the tags, but that would again duplicate a lot of the code from offlineimap. I also agree here - offlineimap already has a repository type Gmail, and if gmails imap extensions, particularly https://developers.google.com/google-apps/gmail/imap_extensions#access_to_gmail_labels_x-gm-labels is used, it should be not to difficult to read the labels and to store them in e.g. a sqlite database for each message id. This could then be written back as well, and only the [GMAIL] folder would have to be synchronised, i.e. no duplication. > > I think that communicating with the server should be left to offlineimap (or whatever other > method one uses), and indexing should be left to notmuch. agree here as well. Will approach the offlineimap comuity about this again. Cheers, Rainer > > > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlC1vf4ACgkQoYgNqgF2egpYwACeOAMKZHIZURAOmbUqN6D86BQy zCUAn2NfekMjnJ1KCqdRjgs01BQlxn44 =VynC -----END PGP SIGNATURE-----