Skip to content

enh: collector_mail_attach allow_empty - #2647

Merged
sebix merged 2 commits into
developfrom
collector-allow-empty
Sep 19, 2025
Merged

enh: collector_mail_attach allow_empty#2647
sebix merged 2 commits into
developfrom
collector-allow-empty

Conversation

@e3rd

@e3rd e3rd commented Sep 18, 2025

Copy link
Copy Markdown
Member

Adding a tag. I keep receiving empty attachments from a partner. Since this is a valid behaviour and there is no reason for a bot to stop, I've added the parameter.

@sebix

sebix commented Sep 18, 2025

Copy link
Copy Markdown
Member

I was thinking about the default value of the new parameter and about the behaviour itself.

I think I agree with you, that normally an empty attachment is an error. An error in parsing, the bot configuration or by the sender and needs admin attention. In the parsers, we also don't silently accept a misformatted report.

Comment thread docs/user/bots.md Outdated
Comment thread intelmq/bots/collectors/mail/collector_mail_attach.py Outdated
Comment thread intelmq/tests/bots/collectors/mail/lib.py Outdated
@sebix sebix added feature Indicates new feature requests or new features component: bots labels Sep 18, 2025
@e3rd

e3rd commented Sep 19, 2025

Copy link
Copy Markdown
Member Author

I agree with you, that normally an empty attachment is an error.

I would have not known either but this was the default behaviour. Thanks, I'll change!

@e3rd

e3rd commented Sep 19, 2025

Copy link
Copy Markdown
Member Author

If merging, can you squash by the button so that I don't have to rebase here? (I still may.)

@sebix sebix added this to the 3.5.0 Feature Release milestone Sep 19, 2025
@sebix
sebix merged commit 39ec9fc into develop Sep 19, 2025
31 checks passed
@sebix
sebix deleted the collector-allow-empty branch September 19, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: bots feature Indicates new feature requests or new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants