--- /dev/null
+Return-Path: <bremner@unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 2C9E6431FAF\r
+ for <notmuch@notmuchmail.org>; Wed, 28 Nov 2012 08:45:39 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id xqsAGTgbyFha for <notmuch@notmuchmail.org>;\r
+ Wed, 28 Nov 2012 08:45:38 -0800 (PST)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+ (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 98669431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 28 Nov 2012 08:45:38 -0800 (PST)\r
+Received: from convex-new.cs.unb.ca ([131.202.245.35])\r
+ by tesseract.cs.unb.ca with esmtpsa\r
+ (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72)\r
+ (envelope-from <bremner@unb.ca>)\r
+ id 1TdklP-0000eU-4J; Wed, 28 Nov 2012 12:45:31 -0400\r
+Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.80)\r
+ (envelope-from <bremner@unb.ca>)\r
+ id 1TdklJ-0008K4-PA; Wed, 28 Nov 2012 12:45:25 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: Michal Nazarewicz <mina86@mina86.com>, Tomi Ollila <tomi.ollila@iki.fi>,\r
+ Rainer M Krug <r.m.krug@gmail.com>\r
+Subject: Re: gmail label support patch available for oflineimap\r
+In-Reply-To: <xa1td2yxnawy.fsf@mina86.com>\r
+References: <k8vn08$62g$2@ger.gmane.org> <87zk24ctko.fsf@convex-new.cs.unb.ca>\r
+ <50B3871B.2050509@gmail.com> <87r4ngcl00.fsf@convex-new.cs.unb.ca>\r
+ <50B48627.9040409@gmail.com> <xa1tfw3vugkf.fsf@mina86.com>\r
+ <CAGhLh6Fhxq=bFHVPfVaMg0dXLgF3VEr-nBh62CbBAW7arwsM9Q@mail.gmail.com>\r
+ <xa1t8v9mvogd.fsf@mina86.com> <m2mwy2rnhl.fsf@guru.guru-group.fi>\r
+ <xa1td2yxnawy.fsf@mina86.com>\r
+User-Agent: Notmuch/0.14+76~g84a0c52 (http://notmuchmail.org) Emacs/24.2.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 28 Nov 2012 12:45:25 -0400\r
+Message-ID: <87a9u1d6ca.fsf@convex-new.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-Spam_bar: -\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 28 Nov 2012 16:45:39 -0000\r
+\r
+Michal Nazarewicz <mina86@mina86.com> writes:\r
+\r
+> On Wed, Nov 28 2012, Tomi Ollila wrote:\r
+>> I could not find it in the docs (looked wiki mainly) but one of the \r
+>> principles notmuch currently operates that the *contents* of the email\r
+>> files it reads are not ever modified. i.e. the email files are read-only\r
+>> from notmuch (cli) point of view.\r
+>\r
+> This is only a problem if you want to modify the labels in the email and\r
+> sync them back to Gmail though, right?\r
+\r
+Right. But without that, the whole thing could be scripted pretty easily\r
+I think, just parse the x-labels header and use notmuch-deliver or\r
+something like that.\r
+\r
+d\r