aduernberger
20f6d7103e
[Fix] Always set the unlearn flag when relearning
Treat relearning from ham to spam the same as relearning from spam to ham. `res` is only set to true if the mail is already learned.
3 weeks ago
Dmitriy Alekseev
7d14e4af43
[Enhancement] Exclude false positives of MIME_DOUBLE_BAD_EXTENSION
If we detected extension of the file and this extension is equal to the real extension then we should not pass second extension to check function as it will trigger false positive for MIME_DOUBLE_BAD_EXTENSION.
1 month ago
Andrew Lewis
1c07c471bb
[Minor] Fix grow_factor
1 month ago
Vsevolod Stakhov
a96ff38346
[Project] Adjust some final bits
1 month ago
Vsevolod Stakhov
d1e16266e1
[Project] Write a function to adjust grow factor properly
1 month ago
Vsevolod Stakhov
ae103665a2
[Project] Rework grow factor as it is currently broken
1 month ago
Vsevolod Stakhov
b2ba70cf7a
[Fix] Honor dynamic thresholds for greylisting module
1 month ago
Vsevolod Stakhov
2715f24536
[Minor] Remove redundant metric name
1 month ago
Vsevolod Stakhov
2edcc63aea
[Fix] Update greylisting threshold as it can be easily dynamic
Issue: #4908
Closes: #4908
1 month ago
Vsevolod Stakhov
f4f89705b3
[Fix] Fix shared memory proxying when compression is set
1 month ago
Vsevolod Stakhov
fbc6e35dba
[Feature] Allow custom milter quarantine and tempfail messages
Issue: #4892
Closes: #4892
1 month ago
Andrew Lewis
7769774962
[Minor] Fix format of example setting (rspamd.com#736)
1 month ago
Vsevolod Stakhov
2038f3c92a
[CritFix] Protect regexp matcher from regexps with empty patterns
Issue: #4885
Closes: #4885
1 month ago
Vsevolod Stakhov
05636d9af8
[Minor] Deny zero length in regexp search functions
1 month ago
Vsevolod Stakhov
10577f1f79
[Fix] Fix inconsistent nesting in mime parts
We should do like MUAs do: imlicitly close incomplete mime parts
and treat them as ususal. It is weird and utterly stupid but that's
what MUA do.
Issue: #4740
Closes: #4740
1 month ago
Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
1 month ago
Vsevolod Stakhov
6b2b416718
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
1 month ago
Vsevolod Stakhov
8637480155
[Minor] Another similar `getline` fix
1 month ago
Vsevolod Stakhov
edc43a68f7
[Minor] Fix irrelevant issue with the `getline` invocation
1 month ago
Vsevolod Stakhov
1d0ff299f5
[Fix] Do not save multipatterns to FS in certain cases
1 month ago
Vsevolod Stakhov
a73a67f91d
[Fix] Fuzzy add/delete handlers are badly broken for compression
1 month ago
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
2 months ago
Vsevolod Stakhov
bc1d4d92f5
[Feature] Use msgpack in the client
2 months ago
Vsevolod Stakhov
fa45782ada
[Minor] Fix invocation
2 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.
2 months ago
Vsevolod Stakhov
a4de9b2ebb
[Rework] Another rework of the dkim signing logic
2 months ago
Vsevolod Stakhov
3de247b318
[Rework] Allow multiple conditions for dkim signing when using vault/redis
2 months ago
moisseev
e6bde4044a
[Minor] Add HTTP_MAGIC_SVG key
2 months ago
moisseev
1ef13a2419
[Minor] Serve SVG with the correct CT
2 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
2 months ago
Vsevolod Stakhov
bcd36f7959
[Rework] Rework dynamic usage
2 months ago
Vsevolod Stakhov
dd284d1c1e
[Minor] Fix lua_tensor usage
2 months ago
Vsevolod Stakhov
900f364e36
[Rework] Use direct hashing instead of string hashing
2 months ago
Vsevolod Stakhov
75327b3889
[Project] Convert the remaining
2 months ago
Vsevolod Stakhov
72539a7ad1
[Minor] Forgotten files
2 months ago
Vsevolod Stakhov
8238dc0a23
[Project] Start optimization of userdata hashing
2 months ago
Vsevolod Stakhov
24b189a91a
[Fix] Update `nconns` in proxy
2 months ago
Vsevolod Stakhov
d093bb5e0a
[Minor] Ask for utf8 string from libarchive
2 months ago
Vsevolod Stakhov
35085a042f
[Minor] Detect encryption when libarchive is used
2 months ago
Vsevolod Stakhov
8e8a09ffbf
[Project] Use libarchive for troublesome archives
2 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...
2 months ago
Vsevolod Stakhov
923a70bbce
Revert "[Fix] Fix history key, as we use `{=` and not `{{` in templates"
2 months ago
Vsevolod Stakhov
50e9652789
[Fix] Fix history key, as we use `{=` and not `{{` in templates
2 months ago
Vsevolod Stakhov
6c8e9a3378
[Minor] Allow to have only dynamic keys in fuzzy storage
2 months ago
Vsevolod Stakhov
8cf1f0698b
[Minor] Improve logging
2 months ago
Vsevolod Stakhov
6296080e41
[Fix] Fix initial maps load
2 months ago
Vsevolod Stakhov
20bd3eecb7
[Feature] Implement dynamic keys map in fuzzy storage
2 months ago
Vsevolod Stakhov
a3866372a6
[Minor] Add refcounts on fuzzy keys for shared usage
2 months ago
Vsevolod Stakhov
c5da2ff5e9
[Rework] Use khash instead of glib hashes for many reasons
2 months ago
Vsevolod Stakhov
8d7081d885
[Fix] Encode headers in metadata exporter
Issue: #4808
2 months ago