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