Skip to content

fix: missing CDB files caused all things to match#5

Open
rtdean wants to merge 1 commit into
bruceg:masterfrom
rtdean:fix-mailrules-ignore-missing-cdb
Open

fix: missing CDB files caused all things to match#5
rtdean wants to merge 1 commit into
bruceg:masterfrom
rtdean:fix-mailrules-ignore-missing-cdb

Conversation

@rtdean
Copy link
Copy Markdown

@rtdean rtdean commented May 31, 2026

The documentation states that "Missing CDB files are silently ignored." They are... mostly silently ignored, but if they were missing, they caused all things to match (cdb_find was checking != 0, cdb_find was returning -1 for error, -1 != 0). Updated calling sites to instead check cdb_find > 0 (actually found), and cleaned up the opening a bit.

The documentation states that "Missing CDB files are silently
ignored."  They are... mostly silently ignored, but if they were
missing, they caused all things to match (cdb_find was checking
!= 0, cdb_find was returning -1 for error, -1 != 0).  Updated
calling sites to instead check cdb_find > 0 (actually found),
and cleaned up the opening a bit.
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.

1 participant