[PATCH 0/8] batch tagging support: "notmuch tag --stdin"
authorJani Nikula <jani@nikula.org>
Sat, 31 Mar 2012 22:17:20 +0000 (01:17 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:54 +0000 (09:45 -0800)
2c/38f64ee4a2e21b1cb8639174762aa93035be7b [new file with mode: 0644]

diff --git a/2c/38f64ee4a2e21b1cb8639174762aa93035be7b b/2c/38f64ee4a2e21b1cb8639174762aa93035be7b
new file mode 100644 (file)
index 0000000..2151d03
--- /dev/null
@@ -0,0 +1,107 @@
+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 0F79F431FAF\r
+       for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:17:37 -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 sZGtmcnM9JUt for <notmuch@notmuchmail.org>;\r
+       Sat, 31 Mar 2012 15:17:36 -0700 (PDT)\r
+Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4F398431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:17:36 -0700 (PDT)\r
+Received: by bkwj4 with SMTP id j4so1547751bkw.26\r
+       for <notmuch@notmuchmail.org>; Sat, 31 Mar 2012 15:17:33 -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=JsJ59vBB+S9fF6OXrsnV8Ucdoo84oevnXvXf53ExiLY=;\r
+       b=dw3P4Oj79S4gaL880a4eCfQtpSJJvwV3XlzZ4EKhWb2e+CVFOkXyUeiUepbf8lCOGH\r
+       QUWSewtJCrgwKD1jOwUR/aKC1T5B76tLfeSypCDZEsHyc8cuS+fhJU5twKSakR3uZ5Xs\r
+       r4OoV0vIhJ8uZJNAM0GGvSApgE4EaueqHC+jqIkqNTPxWJhGd1wszM10u4hPq6ocAiAo\r
+       XcJ7IFpny5mkTdNlAwayVzlmFqhV0+UwM/YLh9uxGEUatUTlbCyEy6Ru2rWSwPQIRYwg\r
+       LBLJborxi7moRcfZR8X1qEmk3R8h5wqSipdO6CycYxnc2Y6IvDkqdsj+vAtZm70olslP\r
+       g09g==\r
+Received: by 10.204.130.151 with SMTP id t23mr1375063bks.27.1333232253456;\r
+       Sat, 31 Mar 2012 15:17:33 -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 c4sm28614450bkh.0.2012.03.31.15.17.30\r
+       (version=SSLv3 cipher=OTHER); Sat, 31 Mar 2012 15:17:32 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/8] batch tagging support: "notmuch tag --stdin"\r
+Date: Sun,  1 Apr 2012 01:17:20 +0300\r
+Message-Id: <cover.1333231401.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.5.4\r
+X-Gm-Message-State:\r
+ ALoCoQknPocGot9J3kFXABtupr2bK6OBprm5627lO8lJAzGWWu20SegxUUimGx62bhM7fWWlG9KQ\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: Sat, 31 Mar 2012 22:17:37 -0000\r
+\r
+Hi all, this series adds support for batch tagging through stdin to\r
+"notmuch tag". This should be useful and efficient for e.g. initial\r
+tagging scripts. See the test patch for an example using a "here\r
+document".\r
+\r
+The hex escaping routines are by David; my additions to them are in\r
+separate patches, but they could all be folded together too.\r
+\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+David Bremner (3):\r
+  hex-escape: (en|de)code strings to/from restricted character set\r
+  test/hex-xcode: new test binary\r
+  test/hex-escaping: new test for hex escaping routines\r
+\r
+Jani Nikula (5):\r
+  hex-escape: be more strict about the format while decoding\r
+  hex-escape: add function to decode escaped string in-place\r
+  cli: add support for batch tagging operations to "notmuch tag"\r
+  test: add test for notmuch tag --stdin option\r
+  man: document notmuch tag --stdin option\r
+\r
+ man/man1/notmuch-tag.1 |   44 +++++++++-\r
+ notmuch-tag.c          |  244 ++++++++++++++++++++++++++++++++++++++++++------\r
+ test/.gitignore        |    1 +\r
+ test/Makefile.local    |    6 +-\r
+ test/basic             |    2 +-\r
+ test/hex-escaping      |   26 +++++\r
+ test/hex-xcode.c       |  103 ++++++++++++++++++++\r
+ test/notmuch-test      |    1 +\r
+ test/tagging           |   13 +++\r
+ util/Makefile.local    |    2 +-\r
+ util/hex-escape.c      |  167 +++++++++++++++++++++++++++++++++\r
+ util/hex-escape.h      |   38 ++++++++\r
+ 12 files changed, 612 insertions(+), 35 deletions(-)\r
+ create mode 100755 test/hex-escaping\r
+ create mode 100644 test/hex-xcode.c\r
+ create mode 100644 util/hex-escape.c\r
+ create mode 100644 util/hex-escape.h\r
+\r
+-- \r
+1.7.5.4\r
+\r