Closed realizelol closed 1 week ago
@DerLinkman after merging if quarantine still works and get fuzzy hashes we can assume everything is okay.
We can add extra handling for unknown
string to not display it in quarantine as well.
We can add extra handling for
unknown
string to not display it in quarantine as well.
Maybe I unterstand you wrong. But the current code has the 'unknown'
value on the upstream part it's ''
|{}
(empty).
I don't know where exactly the variable r.fuzzy
will be used. But if I'll give it a short review in the mentioned code snippet:
This will fix the output of fuzzy_hashes
"higher than 0" in the result value or array e.g. {1, 2, 3}
and if this is zero or negative value it result in whether ''
(single) or {}
(array) emptiness instead of a 0 or a negative value.
And actually the quarantine will not being processed if the fuzzy_hashes
has the unknown
flag. So the same could be done if the value is ''
or {}
=> empty ?
After about 3 and a half years the rspamd plugin file /usr/share/rspamd/plugins/metadata_exporter.lua still gets overridden by data/Dockerfiles/rspamd/metadata_exporter.lua. By this commit https://github.com/mailcow/mailcow-dockerized/commit/d85241f this should be a temporary fix which also should be merged upstream by https://github.com/rspamd/rspamd/commit/8683c46.
The only thing is that you'll be informed by
"unknown"
instead empty''
onr.fuzzy
:upstream
local
But this should not be the reason of overriding improved code which is also still in maintenance.