Skip to content

feat!: remove passthrough_sender and passthrough_recipients and warn about unused ini settings - #970

Merged
hpk42 merged 2 commits into
mainfrom
remove_unencrypted
May 14, 2026
Merged

feat!: remove passthrough_sender and passthrough_recipients and warn about unused ini settings#970
hpk42 merged 2 commits into
mainfrom
remove_unencrypted

Conversation

@hpk42

@hpk42 hpk42 commented May 14, 2026

Copy link
Copy Markdown
Contributor

this eliminates one more source of unencrypted messages that is hardly used practically.

When running "cmdeploy run" operators will see a warning if their chatmail.ini contains these unused options.

...
Deploy completed, call `cmdeploy dns` next.
WARNING: chatmail.ini contains settings that have no effect: passthrough_senders, passthrough_recipients
Please remove them from chatmail.ini.

…ate one more source of unencrypted messages

When running "cmdeploy run" operators will see a warning if their chatmail.ini contains these unused options.
Comment thread chatmaild/src/chatmaild/config.py Outdated
self.password_min_length = int(params.get("password_min_length", 9))
self.passthrough_senders = params.get("passthrough_senders", "").split()
self.passthrough_recipients = params.get("passthrough_recipients", "").split()
_unused = ("passthrough_senders", "passthrough_recipients")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use params.pop() instead of params.get() above and then warn about all keys that were not used instead of keeping a list of deprecated keys here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k, that's a bit more of a refactor and general mechanism then. i added a commit to go for your suggestion.

@hpk42 hpk42 changed the title feat!: ignore passthrough_sender and passthrough_recipients feat!: remove passthrough_sender and passthrough_recipients and warn about unused ini settings May 14, 2026
@hpk42
hpk42 merged commit a47bb94 into main May 14, 2026
8 checks passed
@hpk42
hpk42 deleted the remove_unencrypted branch May 14, 2026 18:58
hpk42 added a commit to chatmail/filtermail that referenced this pull request May 14, 2026
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.

2 participants