-
Notifications
You must be signed in to change notification settings - Fork 307
smtp_batch: add feature for grouping and templating #2610
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
base: develop
Are you sure you want to change the base?
Conversation
Feel free to have a look, but it will be some time (estimate: 1-2 weeks) until I can have a look at the failing pipelines.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, thanks! :)
5c47ded
to
3316149
Compare
3316149
to
5a44948
Compare
Finally the tests are working. (Sorry for the frequent pushes) So now from my point of view only some tests for the new features are missing. I'd like to keep the old/current tests as "basic" config with the "basic" set of features and one new test (different config is needed for this anyhow) for the more advanced features (one run which includes the new grouping and the templating). |
2b7e2da
to
cdd5d60
Compare
The test should be easily fixed now. But I noticed another issue (for which we do not have a test yet: intelmq/intelmq/bots/outputs/smtp_batch/output.py Lines 77 to 78 in 2f15e20
When source.abuse_contact is multiple addesses it is important to use the address stored in the key and not the soruce.abuse_contact field.
The fix I thought about would be to simply add a number to the redis key serving as index which indicates which address of the Any other ideas / comments on this approach? |
cdd5d60
to
1467f40
Compare
1467f40
to
0b397bd
Compare
Ok I noted at least with the default Apart from that issue this is finished from my point of view (maybe cleanup the commit history even more). Any comments / changes required? |
(sorry I'm late again, trying to get to you in the next days) |
Like discussed in #2586, here is the thing. I already did some manual testing regarding templating the subject string. For this configured
extra.my_template_value
to the events (I did this with the modify bot for now)extra.my_template_value
) to the newadditional_grouping_keys
parametersubject: "Prefix {{ extra_my_template_value }}"
templating: {subject: true}
But probably some tests in the test suite will be needed for this (but I'd like to defer this one after the first feedback round)
Any comments?
Maybe issues to discuss:
hash_arbitrary
template_data
along with eachmail
as a tuplerequirements.txt
?Also I didn't get the testing environment setup correctly until now, so it would be nice if someone could trigger the pipelines yet already so I can check the outputs regarding code-style.