Re: [BUG] Minor: config list adds a semi-colon to lists with a single item until set

Subject: Re: [BUG] Minor: config list adds a semi-colon to lists with a single item until set

Date: Sat, 18 Nov 2017 16:13:07 -0400

To: Ian, notmuch@notmuchmail.org

Cc:

From: David Bremner


Ian <saturns_rings@protonmail.com> writes:

> $ notmuch config list
> ...
> search.exclude_tags=spam
>
> ;
>
> <-- Semi-colon
> ...
> $ notmuch config get search.exclude_tags
> spam
> $ notmuch config
>
> set
>
> search.exclude_tags spam
> $ notmuch config get search.exclude_tags
> spam
> $ notmuch config list
> ...
> search.exclude_tags=spam                        <-- No semi-colon

Thanks for the report. It looks like two issues. The main one is that
"notmuch config list" is not sanitizing the input sufficiently, so if
extra ';' are added, they show in the list output. The second is that
notmuch setup is adding ; to single item lists.

d

PS. For better or worse, HTML is bound to get mangled this list.

_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: