aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
Commit message (Collapse)AuthorAgeFilesLines
* [Fix] Dmarc: Properly encode structured headersVsevolod Stakhov2024-11-151-9/+11
| | | | Issue: #5221
* Merge branch 'rspamd:master' into masterIvan Stakhov2024-10-021-6/+11
|\
| * [Fix] Fix DCC `rep` handlingvstakhov-fix-dccVsevolod Stakhov2024-09-271-6/+11
| | | | | | | | Issue: #5158
* | [Minor] Make names more informativeLeftTry2024-09-291-4/+4
| |
* | [Minor] Change wrong logic of LRU cache to the right oneLeftTry2024-09-291-1/+1
| |
* | [Feature] Add LRU cache for last filled ratelimit bucketsLeftTry2024-09-291-0/+5
|/
* [Feature] Add rspamadm secretbox commandIvan Stakhov2024-09-182-5/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Minor] Small fix for error messages * [Feature] Create rspamadm util to decrypt header * [Feature] Create python example to encrypt/decrypt header * [Minor] Small clean up * [Minor] Change c-rspamadm util to lua-rspamadm util * [Minor] Small clean up * [Minor] Add some debug * [Feature] Add secretbox command * [Minor] Debug * [Minor] Add additional return for encrypted string(noce + encrypted string * [Minor] Small debug * [Minor] Add a way to provide encrypted text concatenated with nonce * [Minor] Add nonce to encrypt text * [Minor] Clean up * [Minor] Clean up unused variable * [Minor] Small fix * [Minor] Fix return issue * [Minor] Add blake2b for key derivation * [Minor] Small upgrade to debug * [Minor] Small clean up * [Minor] Change return to more convenient form * [Minor] Change print to test form * [Test] Provide tests for encrypt/decrypt with rspamadm util and python script * [Minor] Change python to python3 * [Minor] Add stderr check * [Minor] Make the function return nonce+text * [Minor] Change unit tests to new return format * [Minor] Add flag to manage encodings * [Minor] Add --encoding argument to manage encodings * [Minor] Change tests for new input format * [Minor] Fix lua format * [Minor] Small fix * [Minor] Provide full support for new return format of maybe_encrypt_header * [Test] Test small fix * [Test] Small fix * [Minor] Clean up * [Minor] Small fix for name of variable * [Minor] Small clean up * [Minor] Change format of command to a mre convenient * [Minor] Change tests to be same as a format of a command * [Minor] Change description of flags * [Minor] Small fix --------- Co-authored-by: Ivan Stakhov <50211739+LeftTry@users.noreply.github.com>
* [Minor] Do not autolearn messages without queue idVsevolod Stakhov2024-09-141-0/+7
| | | | Suggested by: @moisseev
* [Minor] remove unnecessary calls of lpeg.P in DMARC grammarThomas Oettli2024-09-131-2/+2
| | | | Just to make to code more readable.
* [Fix] Rework DMARC to correctly handle spaces in DMARC recordsThomas Oettli2024-09-121-3/+3
| | | | Issue: #4906
* [Project] Move ratelimit parsing stuff to a common libraryVsevolod Stakhov2024-09-111-0/+155
|
* [Fix] Another fix for Redis schemaVsevolod Stakhov2024-09-071-4/+6
| | | | Issue: #5112
* [Feature] Add tooling to encrypt strings in LuaIvan Stakhov2024-09-051-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Fix] Provide support for OpenSSL 3.0 * [Feature] Provide function to encode header with configured public key * [Feature] Provide function to decode header with configured public key * [Test] Add tests for maybe encode/decode header * [Minor] Fix tests for encode/decode header * [Minor] Small clean up * [Minor] Small clean up * [Minor] Small fix for OpenSSL 3.0 support * [Minor] Provide logging * [Minor] Small fix * [Fix] Fix typo error * [Fix] Another typo * [Minor] Little clean up * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Minor] Rewrite the arguments of secretbox:encrypt/decrypt functions to a more understandable format * [Fix] Fix problem with nonce was not provided * [Test] Add test for nonce * [Minor] Little clean up * [Minor] Little clean up * [Test] Test * [Test] Test * [Test] Test * [Minor] Little fix * [Minor] Small fix * [Minor] Small fix * [Test] Small fix * [Test] Test * [Test] Test * [Test] Test * [Test] Test * [Minor] Small fix for fips provider * [Minor] Change provider apply logic * [Test] Little fix for provider * [Minor] Provide OpenSSL <3.0 support * [Test] Possible provider fix * [Test] Possible provider fix * [Test] Little fix * [Minor] Fix provider issue * [Minor] Small clean up * [Minor] Change logging errors * Update lualib/lua_util.lua --------- Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
* deduplicate url_encode_stringTarmo Oja2024-09-042-14/+5
|
* Merge branch 'master' into fix-icap-url-encodeTarmo Oja2024-09-041-6/+7
|\
| * [Minor] Change log level for autolearningVsevolod Stakhov2024-08-301-6/+7
| | | | | | | | Fix unidiomatic string builder when I'm here.
* | handle nilTarmo Oja2024-08-231-0/+3
| |
* | [PATCH] Encode constructed path to be URL safe.Tarmo Oja2024-08-222-1/+19
|/ | | | fix #4643
* [Minor] Restore back one more legacy conversionVsevolod Stakhov2024-08-161-0/+23
|
* [Minor] Restore legacy conversionsVsevolod Stakhov2024-08-161-0/+163
| | | | With new `index` method it seems much easier in fact
* [Minor] Add support for transparent ucl in override_defaultsVsevolod Stakhov2024-08-161-4/+24
|
* [Minor] Sime minor changesVsevolod Stakhov2024-08-151-2/+2
|
* [Minor] Slight cleanupVsevolod Stakhov2024-08-151-9/+23
|
* [Minor] Fix checkVsevolod Stakhov2024-08-151-2/+2
|
* [Rework] Breaking: Rewrite cfg transform and remove legacyVsevolod Stakhov2024-08-151-440/+79
| | | | | | | | | | | | | What is removed: * SURBL/Email -> rbl conversion * IP reputation -> reputation conversion Reasoning: * Too hard to support forever * Outdated * Want to use transparent UCL instead of modifying the config from Lua
* [Minor] Fix loggingVsevolod Stakhov2024-08-011-3/+3
|
* [Minor] Fix status change and improve loggingVsevolod Stakhov2024-08-011-10/+26
|
* [Fix] Fix Redis scripts uploading when Redis is not readyVsevolod Stakhov2024-08-011-67/+129
| | | | | | | | Initially, there was no way to recover from Redis errors that are temporary by nature (e.g. when Redis was busy with loading database). This PR adds logic to check returned reply and adds more fine-grained errors-per-server handling.
* [Project] Enable compatibility with the existing bucketsVsevolod Stakhov2024-07-092-40/+56
|
* [Minor] Log FP and FNVsevolod Stakhov2024-06-301-2/+8
|
* [Minor] Allow to specify spam/ham symbols in classifier_testVsevolod Stakhov2024-06-281-3/+12
|
* [Minor] Use files instead of arguments for rspamcVsevolod Stakhov2024-06-131-15/+24
|
* [Minor] Add timingsVsevolod Stakhov2024-06-111-4/+18
|
* [Project] Improve stats processingVsevolod Stakhov2024-06-101-22/+40
|
* [Project] Add a tool to perform statistical analysis of classifiersVsevolod Stakhov2024-06-101-0/+186
|
* [Minor] Fix uitil.unpack functionVsevolod Stakhov2024-06-101-2/+2
|
* [Minor] Allow `options.upstreams` to be used as wellVsevolod Stakhov2024-06-081-0/+5
|
* [Feature] milter_headers: support not removing headersAndrew Lewis2024-06-041-1/+4
|
* Fix get_words_count method to be called on the textpart and not on the mimepartroot2024-05-281-1/+1
|
* [Minor] Oops, fix `for` loopVsevolod Stakhov2024-05-161-1/+1
|
* [Minor] Improve string splittingVsevolod Stakhov2024-05-161-4/+3
|
* [Fix] Allow spaces in DMARC recordsVsevolod Stakhov2024-05-161-2/+2
| | | | Issue: #4906
* Merge pull request #4930 from aduernberger/bayes_relearnVsevolod Stakhov2024-04-192-4/+5
|\ | | | | [Fix] Relearn messages in bayes filter
| * [Fix] Increase/decrease hash_key value for tokens depending on is_unlearn aduernberger2024-04-181-2/+2
| | | | | | | | | | | | | | | | When relearning a message, this script is called twice: 1. With `is_unlearn` true and the old `is_spam` value 2. With `is_unlearn` false and the new `is_spam` value If `is_unlearn` is true, the code should not increase the value of the hash_key. Decreasing it ensures that it behaves like a fresh learn with the new is_spam value.
| * [Fix] Update is_spam in learned_ids when relearningaduernberger2024-04-181-2/+3
| |
* | [Minor] Move hostname resolution up to cache itLucas Rolff2024-04-171-1/+3
| | | | | | | | Instead of calling get_hostname() for every processed message, we instead reuse the variable value from rspamd boot time
* | [Minor] Add selector to get rspamd_hostnameLucas Rolff2024-04-151-0/+7
|/
* [Minor] Cloudmark scores_symbols: convert keys to numeric valuesAndrew Lewis2024-04-121-0/+18
|
* [Minor] Fix some corner casesVsevolod Stakhov2024-03-281-2/+4
|
* [Feature] Cloudmark: Add scores_symbols settingVsevolod Stakhov2024-03-271-0/+30
|