albertito / chasquid

SMTP (email) server with a focus on simplicity, security, and ease of operation [mirror]

Home Page:https://blitiri.com.ar/p/chasquid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When set to "", some config options use the default value instead

bbusse opened this issue · comments

The 'drop_characters' config option defaults to 'drop_characters: "."' but when left empty (drop_characters: "") still drops the '.'

Thanks for reporting this! I just edited the title since this bug can be generalized to many of the config options.

Description

When a configuration option is set to "", chasquid will use the default value instead of the empty string.

In particular, the drop_characters and suffix_separators options are both affected.

Workaround

Until a fix is implemented, instead of using "", use any value that isn't found in the user part of addresses, like "🐞".

Commit 1741ff5 should fix this problem, and @bbusse kindly confirmed it works for them (thanks!).

It's currently in next, and as usual I will let it sit there for a bit in case something comes up before moving it to master, but it will definitely be included in the next release.

The fix is included in the v1.9 release.

Thanks again for reporting this!