[PATCH 0/1] add some constraints to tag contents
authorJani Nikula <jani@nikula.org>
Thu, 10 Nov 2011 21:14:30 +0000 (23:14 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:03 +0000 (09:40 -0800)
67/4d38d1a8ad21d68967bb005333581454d049e7 [new file with mode: 0644]

diff --git a/67/4d38d1a8ad21d68967bb005333581454d049e7 b/67/4d38d1a8ad21d68967bb005333581454d049e7
new file mode 100644 (file)
index 0000000..7bcd3ea
--- /dev/null
@@ -0,0 +1,70 @@
+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 7954B431FD0\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 13:14:37 -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 VQv4dB5bSvy2 for <notmuch@notmuchmail.org>;\r
+       Thu, 10 Nov 2011 13:14:37 -0800 (PST)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+       [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E2C91431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 13:14:36 -0800 (PST)\r
+Received: by faan15 with SMTP id n15so3758456faa.26\r
+       for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 13:14:34 -0800 (PST)\r
+Received: by 10.223.16.91 with SMTP id n27mr14487672faa.1.1320959674049;\r
+       Thu, 10 Nov 2011 13:14:34 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
+       [80.220.92.23])\r
+       by mx.google.com with ESMTPS id l18sm12729669fab.9.2011.11.10.13.14.32\r
+       (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 13:14:33 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/1] add some constraints to tag contents\r
+Date: Thu, 10 Nov 2011 23:14:30 +0200\r
+Message-Id: <cover.1320958534.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.5.4\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: Thu, 10 Nov 2011 21:14:37 -0000\r
+\r
+Hi, spawning from the realization that tags are pretty much unconstrained in\r
+what they can contain (newlines, whitespace, a solo '-' which you can add but\r
+not remove, etc.) there was some talk on IRC about restricting them. Notmuch,\r
+but a little. This patch does just that. Perhaps it should be in lib rather than\r
+cli, but it's a start for a discussion on what's an acceptable tag really.\r
+\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (1):\r
+  cli: add some constraints to tags\r
+\r
+ notmuch-client.h |    1 +\r
+ notmuch-tag.c    |   20 ++++++++++++++++++++\r
+ 2 files changed, 21 insertions(+), 0 deletions(-)\r
+\r
+-- \r
+1.7.5.4\r
+\r