From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KEZONPHT/2CPaQEAgWs5BA (envelope-from ) for ; Tue, 27 Jul 2021 11:37:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YFMIMPHT/2C1QgAAB5/wlQ (envelope-from ) for ; Tue, 27 Jul 2021 09:37:53 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1B5EABD72 for ; Tue, 27 Jul 2021 11:37:53 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 391D6290DB; Tue, 27 Jul 2021 05:37:49 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 42300290A4 for ; Tue, 27 Jul 2021 05:37:46 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 695C61B00242; Tue, 27 Jul 2021 12:37:42 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1627378662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=z7knVxW7NrWQHZ+BKSrTiYaHjspKuFFiCcctWE8pMJ8=; b=RKGM/22dMs37RgLuUDBODMexspjq5USfdTltI8PD1me+sfoprAoYaY5ZlZeCbkR1DHaJC9 I/DWdSksmFaEMWOHvN6v50UL3SZM2gfJqDnUAhrkOUeoxjhmE2Zxx/zH/2+E9xqy43kJws 7TG+Q6CYN9eagZbH5WScR62PjBKQdtHPK6fcbvzOyQ25Ip5rgGdKmyb/w1AnbQDcVtjSIl 89CDUJXALYqeIFUiX1JyGT2LxL8W7YaiyC3nHWI1inKwsSOan6Qpx0UdaZntdGq2nDPXHE kZcJlXnqFk62hQNyUu0Syejb+Bm4LK2g3aW/YY2sYyoXXyqwHtFDJskrCsS3fA== From: Tomi Ollila To: alan.schmitt@polytechnique.org, notmuch Subject: Re: notmuch-tag failing on trailing space In-Reply-To: <87im0w6u5r.fsf@m4x.org> References: <87im0w6u5r.fsf@m4x.org> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1627378662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=z7knVxW7NrWQHZ+BKSrTiYaHjspKuFFiCcctWE8pMJ8=; b=RlNZCNQVyEZTVrdOPxEaz82T9h1OwTqzMxeD5jVIhOmAYHhTsdIZtngJL2Agm+sIObPFAL ELauHRKsKYIxbKM014oECCrdr4rUK99TvZTkWCT875014Av963cU4oW7bPa/vbARSsQjhS hYRIBzWpv0p8cKktkPh0LqzJVyZL7uYVDaH+ADEtOg3mMrmNT3WXbKtpRXtYrVxdkzbir7 Rc7sqsG9/SBdDBcdD9sdozHcr3r/Z5Ryk0Gegcl7EjSs3P6ygLqsTE6BvWIhQSEzMOp+C/ jRqPSE7WbYGaeQwcAxd7N/qO/VRm4f79ONQYjRs5bnN+RoluV90gD8UYgbUZ9Q== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1627378662; a=rsa-sha256; cv=none; b=N89v3NBHH1xKvAybYg/+OzEkCLNb8RasVoJKYC8p0+Fj043h9csJGckz9gWxN/hZHAy2ik tEJB2MaM6Jn2vWEoGFhZQBxFUp2e6IPwR6IIOf4+erp2JOr2hJ0ZXPg/bylCne5ijhCzOb aRHcj0WjsMYuSoqc0ry3ES7q36+flBg7Ownc44SDCjCV9WvIYMp4+evh93I90Wt/tR+jyW FC5WEec4Y/tFtMSWS+369h1fh7YSWtiGIfGXR6OP5U0sKXwl4ql5AO0NUFzrdirwIkQYP0 HSv3KABFnrFFl9MkhfD7zu/llMEjKn0+Dt+1mcPRF+28PYn7y0++N2rinQhK1Q== Message-ID-Hash: QGIMCJONTF5CJQ4AFJKUALBVF63ZGRLQ X-Message-ID-Hash: QGIMCJONTF5CJQ4AFJKUALBVF63ZGRLQ X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627378673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=g5D8OUgbrG+oy0qmJEFNUvKcszsc0xZ5qbGeqh7rGQE=; b=m8Eam18RqbTBUUlrTqL+7LS5/hnqYmL2p9mIpPej9XbsIGBKniEZiCLQjyINBrC9S81WLK FSxEEJWxIeL47G9Gxe4FQTJCPWNGGqpsiJm86SGDh5E0jgASD69tM/ZLh02d7vEEfBgsX+ xXzRIDqHb3gGp4i+T4OC5BOV/DW/GNjLzSlDSt/3m1wRIpzf4aTMMFMvSOVArmsACSoM4w mrb0T1Bok6thWfU8AzWerxGW5Bz1iwvbVr41YXTo6LCkxWX8frt5tNcjLyUJ+uEYx1JRS1 4fPMIaX1917ycpiiRGWNa1wuLmtS8JibKqu+aL0ZrLnm9kOCzIUhlRSuOAejWg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1627378673; a=rsa-sha256; cv=fail; b=jZR/9sXBx57Pf7z6wZmmz99iFOV0T8HIEcEEyJuYCXAGeCiZ7EAv9d4Dx406u5Opz6q/jL NKsN9O6j4GmEPctu8K3lOt/gdn12ensmILD5wF0EvCZ8LmA+ssblUCnHHsJtSuIKop8wBs 3tnu/s8wZQcoqimOHkg1giBHSx82kHueyBWTjZOt3CgpxvM2tkEhMESGFqJdHB3lXPyMIw OMw4qm+mvD5fEqFrLxOtB1VOkLkNwWyyX+AEVHU93lqOfZf/mJr+ADiQt4+O7frumClPss 8A1rBQfiT4pi7bG65iAB3PKHMJCekDxbM9ENMNcQsfTLtZGIRtotLB+RwTg64A== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="RKGM/22d"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="RKGM/22d"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1B5EABD72 X-Spam-Score: 1.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: wl+ESt2PlgVV On Tue, Jul 27 2021, alan schmitt wrote: > Hello, > > I have an issue when using the vertico completion system to add tags to > messages that boils down to the following: the notmuch-tag function is > called like this: > notmuch-tag("id:CA+b3G33ad9PX5SuOwqaWS8TWBTtZcdguKtcQ3XmPvzSCsU..." ("+cwn ")) > and it fails because of the extra space at the end. > > Could notmuch-tag be modified to accept trailing spaces? $ notmuch tag '+foo ' id:87im0w6u5r.fsf@m4x.org works -- the tag is 'foo ' in this case. The following fails (what I tried first based on your sample above): $ notmuch tag id:87im0w6u5r.fsf@m4x.org '+foo ' Error: 'notmuch tag' requires at least one tag to add or remove. (i.e. tags first then search terms) > > Thanks, > > Alan Tomi