afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 99 forks source link

Fix the --enable-filters option #347

Open drebs opened 2 months ago

drebs commented 2 months ago

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