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 0F79F431FAF for ; Sat, 31 Mar 2012 15:17:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 sZGtmcnM9JUt for ; Sat, 31 Mar 2012 15:17:36 -0700 (PDT) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4F398431FAE for ; Sat, 31 Mar 2012 15:17:36 -0700 (PDT) Received: by bkwj4 with SMTP id j4so1547751bkw.26 for ; Sat, 31 Mar 2012 15:17:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=JsJ59vBB+S9fF6OXrsnV8Ucdoo84oevnXvXf53ExiLY=; b=dw3P4Oj79S4gaL880a4eCfQtpSJJvwV3XlzZ4EKhWb2e+CVFOkXyUeiUepbf8lCOGH QUWSewtJCrgwKD1jOwUR/aKC1T5B76tLfeSypCDZEsHyc8cuS+fhJU5twKSakR3uZ5Xs r4OoV0vIhJ8uZJNAM0GGvSApgE4EaueqHC+jqIkqNTPxWJhGd1wszM10u4hPq6ocAiAo XcJ7IFpny5mkTdNlAwayVzlmFqhV0+UwM/YLh9uxGEUatUTlbCyEy6Ru2rWSwPQIRYwg LBLJborxi7moRcfZR8X1qEmk3R8h5wqSipdO6CycYxnc2Y6IvDkqdsj+vAtZm70olslP g09g== Received: by 10.204.130.151 with SMTP id t23mr1375063bks.27.1333232253456; Sat, 31 Mar 2012 15:17:33 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi. [84.248.80.253]) by mx.google.com with ESMTPS id c4sm28614450bkh.0.2012.03.31.15.17.30 (version=SSLv3 cipher=OTHER); Sat, 31 Mar 2012 15:17:32 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 0/8] batch tagging support: "notmuch tag --stdin" Date: Sun, 1 Apr 2012 01:17:20 +0300 Message-Id: X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQknPocGot9J3kFXABtupr2bK6OBprm5627lO8lJAzGWWu20SegxUUimGx62bhM7fWWlG9KQ X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2012 22:17:37 -0000 Hi all, this series adds support for batch tagging through stdin to "notmuch tag". This should be useful and efficient for e.g. initial tagging scripts. See the test patch for an example using a "here document". The hex escaping routines are by David; my additions to them are in separate patches, but they could all be folded together too. BR, Jani. David Bremner (3): hex-escape: (en|de)code strings to/from restricted character set test/hex-xcode: new test binary test/hex-escaping: new test for hex escaping routines Jani Nikula (5): hex-escape: be more strict about the format while decoding hex-escape: add function to decode escaped string in-place cli: add support for batch tagging operations to "notmuch tag" test: add test for notmuch tag --stdin option man: document notmuch tag --stdin option man/man1/notmuch-tag.1 | 44 +++++++++- notmuch-tag.c | 244 ++++++++++++++++++++++++++++++++++++++++++------ test/.gitignore | 1 + test/Makefile.local | 6 +- test/basic | 2 +- test/hex-escaping | 26 +++++ test/hex-xcode.c | 103 ++++++++++++++++++++ test/notmuch-test | 1 + test/tagging | 13 +++ util/Makefile.local | 2 +- util/hex-escape.c | 167 +++++++++++++++++++++++++++++++++ util/hex-escape.h | 38 ++++++++ 12 files changed, 612 insertions(+), 35 deletions(-) create mode 100755 test/hex-escaping create mode 100644 test/hex-xcode.c create mode 100644 util/hex-escape.c create mode 100644 util/hex-escape.h -- 1.7.5.4