--- /dev/null
+Return-Path: <jani@nikula.org>\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 28A9B431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 25 Mar 2012 12:18:55 -0700 (PDT)\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 ju4nrrQ+oKnx for <notmuch@notmuchmail.org>;\r
+ Sun, 25 Mar 2012 12:18:53 -0700 (PDT)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+ [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id CD4F8431FAE\r
+ for <notmuch@notmuchmail.org>; Sun, 25 Mar 2012 12:18:52 -0700 (PDT)\r
+Received: by lahc1 with SMTP id c1so3755652lah.26\r
+ for <notmuch@notmuchmail.org>; Sun, 25 Mar 2012 12:18:49 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;\r
+ bh=DeWaE4btoi9uH5DKo0uh7A9g9rr7cqvAkA3rCIA7V7k=;\r
+ b=B72rbMrOoJ5ejsemoubqDu35K8ssMYYLH+qXjw9qGTpSpDx68bc51YmtX1SMc/mDl7\r
+ 2P9fPeua8DLNil/t9dPs6VZcw7fJ8yPtGkx39OBm0JjM8ZB3G8S6spSgS8Qg/O3e8lYr\r
+ OPHJ2pyK9Brln2WTkAVMVmN+NlfYRCKEaGOQ/j8jnxQsxqkzjo3fGl8RPCweEEoLdwZp\r
+ aertkUY1jpqcns3CtK36YItd9W3vDIZcB5TlsJP2UGlGnuZ+54CUlidHiZjcy/0eEBbZ\r
+ JRtJ45eAoZ+gmEWKil2Zx4Q97ZXM3O6/C+PLNmTWxpJaYWXP4BviqeNUiqc2iRI3iQoR\r
+ q4jw==\r
+Received: by 10.112.44.105 with SMTP id d9mr7256860lbm.69.1332703129708;\r
+ Sun, 25 Mar 2012 12:18:49 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+ [84.248.80.253])\r
+ by mx.google.com with ESMTPS id oy17sm14838289lab.7.2012.03.25.12.18.46\r
+ (version=SSLv3 cipher=OTHER); Sun, 25 Mar 2012 12:18:47 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 0/3] cli: notmuch tag/restore refactoring\r
+Date: Sun, 25 Mar 2012 22:18:42 +0300\r
+Message-Id: <cover.1332702915.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.5.4\r
+X-Gm-Message-State:\r
+ ALoCoQmRc9M0hmnLlcM/QxGyFsryrmt3VFo7lE5Zb/ecA2cPsj/UI8cshyP22vmqvBJbUJA4NLo5\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, 25 Mar 2012 19:18:55 -0000\r
+\r
+v2 of id:"cover.1332604895.git.jani@nikula.org" with the following\r
+non-functional changes, addressing David's concerns in mail and IRC:\r
+\r
+ - do not use C99 style struct assignment in patch 1\r
+ - for now, keep tag_message() local to notmuch-restore.c in patch 3\r
+\r
+BR,\r
+Jani.\r
+\r
+Jani Nikula (3):\r
+ cli: refactor "notmuch tag" data structures for tagging operations\r
+ cli: refactor "notmuch tag" query tagging into a separate function\r
+ cli: refactor "notmuch restore" message tagging into a separate\r
+ function\r
+\r
+ notmuch-restore.c | 148 +++++++++++++++++++++++++----------------------\r
+ notmuch-tag.c | 166 +++++++++++++++++++++++++++--------------------------\r
+ 2 files changed, 163 insertions(+), 151 deletions(-)\r
+\r
+-- \r
+1.7.5.4\r
+\r