Vsevolod Stakhov
f8ffbf44bf
[Fix] Rbl: Fix received positioned checks
2 years ago
Vsevolod Stakhov
2fa0e126c7
[Minor] Update my email and the copyright year
2 years ago
Vsevolod Stakhov
9d792e5d1d
[Minor] Micro-optimisation
Suggested by: @citrin
2 years ago
Vsevolod Stakhov
4c8b978e0b
[Minor] Free structure on exit
2 years ago
Vsevolod Stakhov
9bf414e6a1
[Minor] Multimap: Fix default score
Issue: #4117
2 years ago
Vsevolod Stakhov
8cf694d954
[Minor] Allow to disable composites without config breaking
Issue: #4078
2 years ago
Vsevolod Stakhov
7fab24199e
[Minor] Cleanup memory on the error path
2 years ago
Vsevolod Stakhov
fec1c25ef6
[Minor] Optimise boundaries processing by avoiding small strings allocation
2 years ago
Vsevolod Stakhov
5a7a082211
[Fix] Plug memory leak by using mempool for a copied address
2 years ago
Vsevolod Stakhov
9117058f15
[Minor] Allow to specify mempool when copying an IP address structure
2 years ago
Vsevolod Stakhov
89960ca4a4
[Minor] Rbl: Do not check empty user/domain in rbl
2 years ago
Vsevolod Stakhov
b083a2a17f
[Minor] Adopt lua_url stuff for the new PRG
2 years ago
Vsevolod Stakhov
f57cb6099e
[Minor] Use wyrand for fast random as we already use mumhash for fast hashing
2 years ago
Mehmet Suslu
11318c481d
make gcc 8.5 happy
gcc 8.5 doesn't compile this file without template parameters for ptr_and_refcnt constructor.
2 years ago
Vsevolod Stakhov
b7605d9239
[Fix] Return a real number of recipients when dealing with aliases
Issue: #4104
2 years ago
Vsevolod Stakhov
03ff121256
[Minor] Fix find to search for plain substrings only
2 years ago
Vsevolod Stakhov
7dfe495e68
[Minor] Another fix for `task:get_symbol`
2 years ago
Vsevolod Stakhov
95f49b26e9
[Minor] Reputation: Another bunch of fixes
Issue: #4100
2 years ago
Vsevolod Stakhov
e6e1a528da
[Minor] Reputation: Fix config variable
2 years ago
Vsevolod Stakhov
6b6c4af8dc
[Fix] Apply the similar fix to the url_reputation
Issue: #4100
2 years ago
Vsevolod Stakhov
cab96bb04a
[Fix] Properly find the request and the number of requested entries
Issue: #4100
2 years ago
Vsevolod Stakhov
8bd5500b3f
[Minor] Add average scan time metric
Issue: #4096
2 years ago
Vsevolod Stakhov
d753ba5f49
[Minor] Deduplicate sum function
2 years ago
Vsevolod Stakhov
0b4e9a4f0b
[Minor] Move summation to a separate routine
2 years ago
Vsevolod Stakhov
34d47efef8
[Minor] Fix printing
2 years ago
Vsevolod Stakhov
fc9cac29db
[Minor] Move common stuff to a function
2 years ago
Vsevolod Stakhov
5091e29234
[Minor] Obsolete old fuzzy epochs
2 years ago
Vsevolod Stakhov
8ddf1aaca9
[Minor] Add missing division
Pointed by: @moisseev
2 years ago
Vsevolod Stakhov
4a5f9c2d91
[Feature] Show average scan time in `rspamc stat` output
2 years ago
Vsevolod Stakhov
aabe0bf565
[Feature] Output average scan time in /stat endpoint
2 years ago
Vsevolod Stakhov
9c5ecc6e60
[Minor] Always report actions count
2 years ago
Vsevolod Stakhov
d642742956
[Minor] Mark `c` in Kahan sum volatile
2 years ago
Vsevolod Stakhov
f6cdd27f8b
[Minor] Add average time processing slots
2 years ago
Vsevolod Stakhov
e932a896eb
[Minor] Align rspamd_stat structure
2 years ago
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
2 years ago
Vsevolod Stakhov
9c933b1803
[Minor] Strip message id from enclosing spaces
Issue: #4081
2 years ago
Vsevolod Stakhov
d23dfcf2cd
[Fix] External_relay: Remove useless check of the map value
Issue: #4080
2 years ago
Vsevolod Stakhov
c5fe1b0509
[Minor] Add an example for the lua_maps usage
2 years ago
Vsevolod Stakhov
b1bef4702c
[Fix] When checking for phishing, we need to convert punicode -> UTF8, not vice versa
Previosly, Rspamd has checked for `xn--` signature just to convert it back to `xn--` form.
According to the expected results, it should do the opposite conversion.
Issue: #4065
2 years ago
Vsevolod Stakhov
192a5fd8bb
[Minor] Improve error reporting
Issue: #4076
2 years ago
Vsevolod Stakhov
4ebb7dcf7f
[Fix] Fix http maps shared memory cache cleanup
It must be initiated by active http worker as it really has the shm object
available.
2 years ago
Vsevolod Stakhov
b00071d015
[Minor] Store map pointer in a backend structure
2 years ago
Vsevolod Stakhov
7c3a7c1365
[Minor] Add more logging for the shm cache for the maps
2 years ago
Anton Yuzhaninov
ff10dae97e
[Fix] ClickHouse cleanup of old partitions
If /var/lib/rspamd/clickhouse_retention_run is missing or has no
number cleanup was not performed because of a following Lua error:
lua_periodic_callback_error: call to periodic script (registered at clickhouse.lua:1531) failed: /usr/share/rspamd/plugins/clickhouse.lua:991: attempt to compare number with nil; trace: [1]:{/usr/share/rspamd/plugins/clickhouse.lua:1069 - <unknown> [Lua]};
2 years ago
Anton Yuzhaninov
bbd738dbdb
[Minor] Remove repeated strcmp(key, "score")
2 years ago
Vsevolod Stakhov
d0321f0863
[Minor] Off by one
2 years ago
Vsevolod Stakhov
7bf24f093d
[Minor] Fix a corner case
2 years ago
Vsevolod Stakhov
3ea9cf43a9
[CritFix] Fix upstreams name resolution when there is also a port
This fix is intended to address the case when Rspamd queries for a hostname with
a port part when re-resolving upstreams addresses via the upstreams module.
Found by: @slavkoja
Confirmed by: @moisseev
2 years ago
Vsevolod Stakhov
2fe30027a9
[Minor] Improve logging logic
2 years ago
Vsevolod Stakhov
3e6bc06d83
[Minor] Do not trigger obfuscated archive on undetecde 8bit characters
2 years ago