Vsevolod Stakhov
b606954ac3
[Minor] Use zstd compression by default in the client
No reasons why not to do it, as there are no supported versions without compression support
3 months ago
Vsevolod Stakhov
bc1d4d92f5
[Feature] Use msgpack in the client
3 months ago
Vsevolod Stakhov
fa45782ada
[Minor] Fix invocation
3 months ago
Vsevolod Stakhov
9b78be4f03
[Feature] Support reply in message pack format
Rspamd currently sends reply in JSON format. However, message pack seems to
be a better choice for a compatible client. It is faster and does not need
escaping or even UTF8 validation. This is a surface for further updates.
3 months ago
Vsevolod Stakhov
a4de9b2ebb
[Rework] Another rework of the dkim signing logic
3 months ago
Vsevolod Stakhov
3de247b318
[Rework] Allow multiple conditions for dkim signing when using vault/redis
3 months ago
moisseev
e6bde4044a
[Minor] Add HTTP_MAGIC_SVG key
3 months ago
moisseev
1ef13a2419
[Minor] Serve SVG with the correct CT
3 months ago
Vsevolod Stakhov
0e1c723643
[Feature] Further optimization to the hot path
We check userdata very frequently, so the idea here is the following:
- Store the address of classname (converted to int) in the metatable at index 1
- When we need to check some udata, we can just compare the static address with
the integer stored in metatable
- This avoid quite an expensive `lua_rawequal` call for two tables as we know that
our classes are quite static
3 months ago
Vsevolod Stakhov
bcd36f7959
[Rework] Rework dynamic usage
3 months ago
Vsevolod Stakhov
dd284d1c1e
[Minor] Fix lua_tensor usage
3 months ago
Vsevolod Stakhov
900f364e36
[Rework] Use direct hashing instead of string hashing
3 months ago
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
3 months ago
Vsevolod Stakhov
72539a7ad1
[Minor] Forgotten files
3 months ago
Vsevolod Stakhov
8238dc0a23
[Project] Start optimization of userdata hashing
3 months ago
Vsevolod Stakhov
24b189a91a
[Fix] Update `nconns` in proxy
3 months ago
Vsevolod Stakhov
d093bb5e0a
[Minor] Ask for utf8 string from libarchive
4 months ago
Vsevolod Stakhov
35085a042f
[Minor] Detect encryption when libarchive is used
4 months ago
Vsevolod Stakhov
8e8a09ffbf
[Project] Use libarchive for troublesome archives
4 months ago
Vsevolod Stakhov
269243987f
[Fix] Allow different template expansion parameters
Probably one of the most dirty hacks I've used in the Lua code in Rspamd...
4 months ago
Vsevolod Stakhov
923a70bbce
Revert "[Fix] Fix history key, as we use `{=` and not `{{` in templates"
4 months ago
Vsevolod Stakhov
50e9652789
[Fix] Fix history key, as we use `{=` and not `{{` in templates
4 months ago
Vsevolod Stakhov
6c8e9a3378
[Minor] Allow to have only dynamic keys in fuzzy storage
4 months ago
Vsevolod Stakhov
8cf1f0698b
[Minor] Improve logging
4 months ago
Vsevolod Stakhov
6296080e41
[Fix] Fix initial maps load
4 months ago
Vsevolod Stakhov
20bd3eecb7
[Feature] Implement dynamic keys map in fuzzy storage
4 months ago
Vsevolod Stakhov
a3866372a6
[Minor] Add refcounts on fuzzy keys for shared usage
4 months ago
Vsevolod Stakhov
c5da2ff5e9
[Rework] Use khash instead of glib hashes for many reasons
4 months ago
Vsevolod Stakhov
8d7081d885
[Fix] Encode headers in metadata exporter
Issue: #4808
4 months ago
Vsevolod Stakhov
dca0a49e6d
[Fix] Make stat tokens allocation consistent
4 months ago
Vsevolod Stakhov
f8210a5ba9
[Test] Add unit tests
4 months ago
Vsevolod Stakhov
d3a56d9509
[Fix] Try to fix url path issue
4 months ago
Vsevolod Stakhov
c6514d44c8
[Minor] Slightly improve log message
4 months ago
Vsevolod Stakhov
52d1dfb9ac
[Feature] Lua_url: Add `to_http` method
4 months ago
Vsevolod Stakhov
cb6478111d
[Minor] Add LOG_CONS flag to `openlog`
4 months ago
Vsevolod Stakhov
d650562632
[Feature] Support JSON logging when in syslog mode
4 months ago
Andrew Lewis
b66bbcbea1
[Minor] rspamd_task API docs: fix broken link
4 months ago
Vsevolod Stakhov
500fac7fd7
[Fix] Resolve issue with bayes stat in `rspamadm` mode
4 months ago
Vsevolod Stakhov
c8dc2b00f9
[Fix] Deal with `Connection` and `Host` headers on proxying
5 months ago
Vsevolod Stakhov
66fde72a40
[Minor] Fix doc string
5 months ago
Vsevolod Stakhov
5faefe0c6c
[Feature] Allow to add templates to redis history prefix
Issue: #4793
Closes: #4793
5 months ago
Alexander Moisseev
c8452b009d
[Rework] Breaking: Do not report module as action
in the /history response since we have the `passthrough_module` key
for that purpose.
While that might be handy in some situations,
mixing actions and module names is confusing in general.
5 months ago
Vsevolod Stakhov
16c1336942
[Minor] Allow the same logic for recipients
5 months ago
Vsevolod Stakhov
6b1f319e21
[Feature] Add extraction type for `from` maps
Attribute name: `extract_from`. Possible values:
* `default` - try smtp, if not exists try mime
* `mime` - check mime only
* `smtp` - check smtp only
* `both` - try to match both
5 months ago
Vsevolod Stakhov
4015346e2f
[Fix] Fix potential double free by expclicitly zeroing pointers
5 months ago
Andrew Lewis
1ea7a0b88c
[Minor] rbl: fix warning
5 months ago
Vsevolod Stakhov
32e2fc07e1
[Minor] Fix old test
5 months ago
Vsevolod Stakhov
f4aa0ba5a8
[Fix] Fix learning with long prefixes
Issue: #4786
Closes: #4786
5 months ago
Vsevolod Stakhov
b1299ac910
[Fix] Fix headers insertion in the ordered list
5 months ago
Vsevolod Stakhov
c7c901ef4b
[Fix] Fix learn error propagation
5 months ago