Re: notmuch-tag failing on trailing space

Subject: Re: notmuch-tag failing on trailing space

Date: Tue, 27 Jul 2021 12:37:40 +0300

To:, notmuch


From: Tomi Ollila

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 '

works -- the tag is 'foo ' in this case.

The following fails (what I tried first based on your sample above):

$ notmuch tag '+foo '
Error: 'notmuch tag' requires at least one tag to add or remove.

(i.e. tags first then search terms)

> Thanks,
> Alan

notmuch mailing list --
To unsubscribe send an email to