Re: Strip spaces in `tags` in `~/.notmuch-config` (and other fields)

Subject: Re: Strip spaces in `tags` in `~/.notmuch-config` (and other fields)

Date: Sun, 05 Dec 2021 08:41:28 -0400

To: Ciprian Dorin Craciun,


From: David Bremner

Ciprian Dorin Craciun <> writes:
> Given that the `~/.notmuch-config` resembles an INI file, and given
> how lax the actual syntax is in general, I would suggest the
> following:
> * allow white-spaces around `[ section ]`, and `field = value`;
> * strip white-spaces (left and right) from values like `tags = unread
> ; inbox ;`;  (but not infix like `tag = some tag ; some other tag;`;)
> * allow skipping the last `;` separator from `tags` and similar;
> Failing that, perhaps add a warning when parsing the configuration file.

This should be fixed in 0.34.1-37-gc0115288, to be part of 0.35

There are one or two remaining corner cases involving escaped spaces and
tabs, but that goes above and beyond this request.

notmuch mailing list --
To unsubscribe send an email to