[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

spamassassin: replace msg_too_big with should_skip #2972

Merged
merged 4 commits into from
Oct 7, 2021

Conversation

msimerson
Copy link
Member
@msimerson msimerson commented Sep 29, 2021

replaces msg_too_big and should_check with should_skip, to be consistent with other plugins that implement should_skip

similar / related to #2564 and #2927

@msimerson msimerson force-pushed the spamassassin-should_skip branch from f3cc53e to e23f9fa Compare September 29, 2021 15:44
@msimerson msimerson requested a review from superman20 October 7, 2021 04:14
Copy link
Collaborator
@superman20 superman20 left a comment

Choose a reason for hiding this comment

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

Looks good to me. The only thing that caught my eye was the mixed logic of returning (for max size) vs flowing through (for everything else) in should_skip. Any reason to have the flow through logic at all? My personal preference would be to return on the first condition that resulted in skipping unless there was value in tracking all the conditions that would have caused skipping.

@msimerson msimerson force-pushed the spamassassin-should_skip branch from d1ac92f to 604d464 Compare October 7, 2021 15:46
@msimerson
Copy link
Member Author

Any reason to have the flow through logic at all?

I've made the logic consistent (pass through) and added a comment on why (populate transaction results fully for statistical analysis).

Copy link
Collaborator
@superman20 superman20 left a comment

Choose a reason for hiding this comment

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

Definitely like the consistency better. Looks good. Thanks!

@msimerson msimerson merged commit 5d302ff into haraka:master Oct 7, 2021
@msimerson msimerson deleted the spamassassin-should_skip branch October 7, 2021 16:13
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