Skip to content

mail: read reply_to and enabled as yes/no switches - #352

Open
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:mail-yes-no
Open

bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:mail-yes-no

Conversation

@bjornars

@bjornars bjornars commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Gaia now reads mail config/reply_to and config/enabled back as yes/no
(novem-code/gaia#8039). Mail.reply_to returned the raw text, so a
caller comparing it with "true" changed outcome, and a truth test was
always true since "no" is a non-empty string.

reply_to now returns a bool, accepting yes/no and the older true/false.
Assigning a bool writes yes/no, which is the only spelling the renderer
honours today. Strings still pass through unchanged. An enabled property
does the same for config/enabled, which had no accessor.

Closes #348

Gaia now reads mail config/reply_to and config/enabled back as yes/no
(novem-code/gaia#8039). Mail.reply_to returned the raw text, so a
caller comparing it with "true" changed outcome, and a truth test was
always true since "no" is a non-empty string.

reply_to now returns a bool, accepting yes/no and the older true/false.
Assigning a bool writes yes/no, which is the only spelling the renderer
honours today. Strings still pass through unchanged. An enabled property
does the same for config/enabled, which had no accessor.

Closes novem-code#348

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mail: read reply_to and enabled as yes/no values

1 participant