Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the --enable-filters option #347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drebs
Copy link

@drebs drebs commented Aug 23, 2024

Filter objects must be initialized with the options found in the config file but, in the case of --enable-filters, objects were being re-initialized and config options ignored.

This change makes use of the configured_filter_chain list of already-initialized filter objects and trims it down by comparing filter class names with the values passed in the command line for --enable-filters.

Closes: #40

Filter objects must be initialized with the options found in the config file
but, in the case of `--enable-filters`, new objects were being initialized with
config options ignored.

This change makes use of the `configured_filter_chain` list of
already-initialized filter objects and trims it down by comparing filter class
names with the values passed in the command line for `--enable-filters`.

Closes: afewmail#40
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.

Configuration is not took in account when using --enable-filters
1 participant