unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [BUG] Minor: config list adds a semi-colon to lists with a single item until set
@ 2017-11-14 21:17 Ian
  2017-11-18 20:13 ` David Bremner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ian @ 2017-11-14 21:17 UTC (permalink / raw)
  To: notmuch@notmuchmail.org

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

It seems on first config some settings are listed by "config list" with a semicolon suffix even if they are a single item. If they are subsequently set to another/the same single value they will then appear in config list WITHOUT the semicolon suffix. See output below. This is a very minor inconsistency but has affected one downstream script: [https://github.com/mturquette/ghar-email/issues/6.](https://github.com/mturquette/ghar-email/issues/6)

---------------------------------------

$ 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

---------------------------------------

[-- Attachment #2: Type: text/html, Size: 1023 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-03 17:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-14 21:17 [BUG] Minor: config list adds a semi-colon to lists with a single item until set Ian
2017-11-18 20:13 ` David Bremner
2022-01-17 23:54 ` [PATCH 1/2] test/setup: add known broken test for single items David Bremner
2022-01-17 23:54   ` [PATCH 2/2] CLI/setup: special case single item lists David Bremner
2022-01-24 13:35     ` David Bremner
2022-01-24 13:37 ` [BUG] Minor: config list adds a semi-colon to lists with a single item until set David Bremner
2022-03-31  9:14   ` Ian

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).