--- /dev/null
+Return-Path: <eg@gaute.vetsj.com>\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 1E79A431FD7\r
+ for <notmuch@notmuchmail.org>; Sun, 2 Nov 2014 06:55:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 Gya0LEW6tr1g for <notmuch@notmuchmail.org>;\r
+ Sun, 2 Nov 2014 06:55:07 -0800 (PST)\r
+Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com\r
+ [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ 5CA2A431FAF for <notmuch@notmuchmail.org>; Sun, 2 Nov 2014 06:55:07 -0800\r
+ (PST)\r
+Received: by mail-wg0-f46.google.com with SMTP id x13so9437426wgg.19\r
+ for <notmuch@notmuchmail.org>; Sun, 02 Nov 2014 06:55:04 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:date:from:subject:to:references:in-reply-to\r
+ :user-agent:message-id:mime-version:content-type\r
+ :content-transfer-encoding;\r
+ bh=TcLOqP/0wx//znhrJeW8/cYRAwvTI4khGBgP0hiShGI=;\r
+ b=KeGMZHHLxQP9KWDcaUPGf2yiMWttr+dB7GXhdBqJctbXeDYeAsQRmgQUtqiX0jYMhO\r
+ swRwcYOWOGw/+4xLJar8r4m3s1DSTNSEjkQHJY0lPeBwjXI6DbqkvP8jBazhBmN8D2rM\r
+ JCrbyILElKoTYXuIxLrQzbmL8N2bE/qqMySXf3GtTrHmHGT4MZ1S28gseQ4/zmv9yMBO\r
+ pgG7RlQyBAh/eosMsnbJIN8qpofPi/o02hzmYg7s/SWAuHFN+mAgRZh2YQXwnrP4W+3S\r
+ xMuwIcjoJiI1ButciQc+l4hnvi5rilfgaQgNi52qJszzOAB10VPM1vXAr9yYBdcI5bXa\r
+ 23zg==\r
+X-Gm-Message-State:\r
+ ALoCoQmV41dEKFN0skOmSAjSIUH3Obe8O4lO1ZDOZ2IKaX9w4OdVvFykgQGsfs102c/vqDkUTZEJ\r
+X-Received: by 10.180.9.103 with SMTP id y7mr10354792wia.5.1414940104709;\r
+ Sun, 02 Nov 2014 06:55:04 -0800 (PST)\r
+Received: from localhost (216.89-20-249.enivest.net. [89.20.249.216])\r
+ by mx.google.com with ESMTPSA id\r
+ cw6sm18881401wjb.18.2014.11.02.06.55.03 for <notmuch@notmuchmail.org>\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sun, 02 Nov 2014 06:55:03 -0800 (PST)\r
+Date: Sun, 02 Nov 2014 14:55:19 +0000\r
+From: Gaute Hope <eg@gaute.vetsj.com>\r
+Subject: [abunchoftags] =?iso-8859-1?Q?=FCberalpha=3A?= sync X-Keywords with\r
+ notmuch tags\r
+To: notmuch@notmuchmail.org\r
+References: \r
+In-Reply-To: \r
+User-Agent: astroid/v2612f530 (https://github.com/gauteh/astroid)\r
+Message-Id: <1414939426-astroid-0-jvzqu7va0w-13521@strange>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8; format=flowed\r
+Content-Transfer-Encoding: quoted-printable\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: Sun, 02 Nov 2014 14:55:15 -0000\r
+\r
+hi,\r
+\r
+there has been a lot of discussion about getting gmail label syncing\r
+with notmuch tags over time. one approach is to use the X-Keywords header t=\r
+hat\r
+offlineimap now supports (kept in sync with GMail labels). I believe this\r
+was originally developed by an at the time notmuch user.\r
+\r
+I haven't found any script or program that completes the link with the\r
+notmuch tags so I've set up a _very_ _experimental_ program that does\r
+this sync. It checks mtimes of files so that it only syncs files that\r
+have been changed (and detects files that notmuch new does not).\r
+\r
+It has not been in use much yet, but if anyone is interested it is\r
+located here:\r
+\r
+ https://github.com/gauteh/abunchoftags\r
+\r
+have a look at the README.md. Including a small section on some of the\r
+pitfalls you might encounter because of the way I prefer to have things\r
+or because of logical mistakes that I may have made. Otherwise refer to\r
+the source code.\r
+\r
+At the end is a proposed way of doing a full sync as well as an example\r
+fetch_and_sync.sh script in the examples folder.\r
+\r
+Please don't use uncritically - it may definitely eat all your mail!\r
+This approach depends on _modifying_ and rewriting your email\r
+(tag-to-keyword sync, not the other way around).\r
+\r
+Hope it may be useful to someone, this is not a release of a finished\r
+program - but there will probably never be such a thing. It works for\r
+me, but doesn't necessarily for you.\r
+\r
+The examples depend on the lastmod patches [0].\r
+\r
+Some rudimentary performance stats:=20\r
+\r
+ Running a full keyword-to-tag sync on a Macbook Pro with around 55k\r
+ messages on an encfs volume took 1m48s and used about 108MB of memory.\r
+\r
+ Running a full tag-to-keyword check on the same message base with 3\r
+ changed messages took about 1m5s and 100MB of memory.\r
+\r
+ The subsequent scans of only changed files takes very little time.\r
+\r
+Cheers, Gaute\r
+\r
+[0] id:1413181203-1676-1-git-send-email-aclements@csail.mit.edu\r
+\r
+=\r