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

Added HEADER_CHECKS configuration option #15

Merged
merged 3 commits into from Oct 3, 2019
Merged

Added HEADER_CHECKS configuration option #15

merged 3 commits into from Oct 3, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 25, 2019

Description

I added the HEADER_CHECKS 1 option with a sample configuration.

Each message header line is compared against a pre-configured list of patterns. When a match is found the corresponding action is executed.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I have tested this version of the docker image in a flask application and checked if the headers where ignored or replaced.

Copy link
Owner

@bokysan bokysan left a comment

Choose a reason for hiding this comment

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

Hi,

thanks for lovely work. Seems to be OK, but few minor finishing touches would be nice.

Can you please check and revert?

Thank you,
B

header_checks Outdated
/^Received:.*with ESMTPSA/ IGNORE
/^Received:.*with ESMTPS/ IGNORE
/^Received:.*with SMTP/ IGNORE
/^Received:/ IGNORE
Copy link
Owner

Choose a reason for hiding this comment

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

Can you just make sure that the lines are aligned?

### `HEADER_CHECKS`

Each message header line is compared against a pre-configured list of patterns. When a match is found the corresponding action is executed. Set to a non-empty string (usually "1" or "yes") enable.

Copy link
Owner

Choose a reason for hiding this comment

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

We'll need additional description here -- e.g. instructions on how to add the file. This is not apparent from documentation.

@ghost
Copy link
Author

ghost commented Oct 2, 2019

Thank you for your review.
I tried to add a better description and corrected the formatting.

Can you please check again?

@ghost ghost requested a review from bokysan October 2, 2019 14:20
@bokysan
Copy link
Owner

bokysan commented Oct 3, 2019

Thank you, I'll merge this into the main branch but I'll most likely move the header_checks file to another location to make it easier to override it.

@bokysan bokysan merged commit a9a09b0 into bokysan:master Oct 3, 2019
@bokysan
Copy link
Owner

bokysan commented Oct 3, 2019

Hi,

after consideration I've renamed your variable to SMTP_HEADER_CHECKS to better reflect the variable being set.

@ghost
Copy link
Author

ghost commented Oct 3, 2019

Makes sense.
Thanks for merging!

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.

None yet

1 participant