aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [Rework] Replies: consider all recipients and use smtp onesvstakhov-replies-fake-rcptVsevolod Stakhov11 days1-13/+13
|
* [Minor] contextal: conditionally disable timer, minor changesAndrew Lewis2025-04-081-6/+12
|
* Merge pull request #5417 from rspamd/vstakhov-bh-greylistingVsevolod Stakhov2025-04-011-0/+23
|\ | | | | [Fix] Greylist: Improve body hash calculations
| * [Fix] Greylist: Improve body hash calculationsvstakhov-bh-greylistingVsevolod Stakhov2025-03-311-0/+23
| |
* | [Project] Rework OSDepVsevolod Stakhov2025-03-291-1/+1
| |
* | [Project] Modernize cmakeVsevolod Stakhov2025-03-292-248/+288
|/
* [Rework] Use locks/loaded per backend for all mapsVsevolod Stakhov2025-03-283-47/+48
|
* Merge pull request #5386 from rspamd/vstakhov-maps-stuffVsevolod Stakhov2025-03-246-60/+189
|\ | | | | Improve maps status visibility
| * [Minor] Set loaded flag when we load map from cachevstakhov-maps-stuffVsevolod Stakhov2025-03-241-0/+3
| |
| * [Minor] Static maps have pre-defined content, so use it to get idVsevolod Stakhov2025-03-241-0/+7
| |
| * [Minor] Hfilter: add maps with descriptionVsevolod Stakhov2025-03-241-6/+7
| |
| * [Fix] Fix maps idsVsevolod Stakhov2025-03-242-5/+21
| |
| * [Fix] Fix static maps description passingVsevolod Stakhov2025-03-243-8/+20
| |
| * [Feature] Output content for all mapsVsevolod Stakhov2025-03-221-27/+57
| |
| * [Feature] Show all maps statusVsevolod Stakhov2025-03-132-7/+50
| |
| * [Rework] Store shared maps data separatelyVsevolod Stakhov2025-03-133-12/+29
| |
* | [Minor] Minor changes to contextal pluginAndrew Lewis2025-03-241-57/+70
| | | | | | | | | | | | - Abandon prefilter - Abandon postfilter in favour of wait if we have request_ttl - Reformat table
* | [Minor] Add config schemaAndrew Lewis2025-03-241-2/+27
| |
* | [Minor] Support defering messages if results are unavailableAndrew Lewis2025-03-241-1/+20
| |
* | [Minor] Satisfy luacheckAndrew Lewis2025-03-241-9/+14
| |
* | [Minor] Use lua_cacheAndrew Lewis2025-03-241-64/+26
| |
* | [Minor] Deal with unfinished work properlyAndrew Lewis2025-03-241-9/+10
| |
* | [Minor] Forgot to use `SETEX`Andrew Lewis2025-03-241-2/+2
| |
* | [Minor] Fix luacheck complaintsAndrew Lewis2025-03-241-8/+13
| |
* | [Feature] Plugin to integrate with Contextal platformAndrew Lewis2025-03-241-0/+302
| |
* | Merge pull request #5400 from williamdes/patch-1Vsevolod Stakhov2025-03-221-2/+2
|\ \ | | | | | | Fix typo on "destionation" -> "destination"
| * | Fix typo on "destionation" -> "destination"William Desportes2025-03-201-2/+2
| | |
* | | Merge pull request #5383 from amulet1/lua_logger_improvementsVsevolod Stakhov2025-03-214-279/+221
|\ \ \ | | | | | | | | [Minor] Lua logging improvements
| * | | Add support for complex table keys in logging outputDmitry Petrov2025-03-161-82/+95
| | | |
| * | | More lua logging improvementsDmitry Petrov2025-03-162-134/+84
| | | | | | | | | | | | | | | | | | | | | | | | * Do not skip numeric indexes that are non-integer or outside of ipairs range when logging table contents * Simplify the code, drop redundant checks * Allow negative stack indexes in lua_logger_out_*() functions
| * | | [Minor] Lua logging improvementsDmitry Petrov2025-03-164-114/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify lua_logger_out_str(), fix length check when doing hex output * Add lua_logger_out() with embedded lua_logger_trace struct * Replace high level lua_logger_out_type() calls with lua_logger_out() * Remove unused lua_logger_trace struct references * Include string terminator into buffer length checks, adjust affected places accordingly
* | | | Merge pull request #5387 from alex081512/masterVsevolod Stakhov2025-03-211-6/+7
|\ \ \ \ | |_|/ / |/| | | [Minor] gpt.lua improvements and one fix for reason_header
| * | | [Minor] C&P issue in last commitalex0815122025-03-141-2/+2
| | | |
| * | | [Minor] Reverted commit for result historyalex0815122025-03-141-9/+2
| | | |
| * | | [Minor] Remove whitespace for lua checkalex0815122025-03-131-2/+2
| | | |
| * | | [Minor] Insert Reason to result to show gpt answer in historyalex0815122025-03-131-2/+10
| | | |
| * | | [Fix] Add header with reason everytime (not only for ham) and use correct ↵alex0815122025-03-131-4/+4
| | | | | | | | | | | | | | | | value for header
| * | | [Minor] Improve gpt prompt - Only ask for red flag when it's spamalex0815122025-03-131-2/+2
| |/ /
* / / [Fix] Update default URL for openphishAndrew Lewis2025-03-141-1/+1
|/ /
* / [Fix] initialize ollama result tableJens Erat2025-03-131-0/+4
|/ | | | | | similar to gpt.lua:704 for the chatgpt code path, the ollama code path needs to initialize the result table. Without, rspamd fails gpt requests with > lua_http_finish_handler: callback call failed: /usr/share/rspamd/plugins/gpt.lua:740: attempt to index a nil value
* Merge pull request #5378 from amulet1/lua_logger_log_formatVsevolod Stakhov2025-03-111-91/+37
|\ | | | | [Minor] Fix and improve format string processing in lua_logger_log_format()
| * [Minor] Fix and improve format string processing in lua_logger_log_format()Dmitry Petrov2025-03-081-91/+37
| | | | | | | | | | | | | | * Fix handling of %s after % with numeric argument * Fix argument number check * Preserve unhandled % in the output * Redesign to simplify the code
* | [Fix] Use bundled libfmt everywherevstakhov-fmt-embeddingVsevolod Stakhov2025-03-1017-38/+38
| | | | | | | | Issue: #5258
* | [Feature] Try to check maps earlier if their expires is too longvstakhov-maps-cachingVsevolod Stakhov2025-03-071-7/+24
| | | | | | | | Issue: #5351
* | Merge pull request #5374 from rspamd/vstakhov-cache-gptVsevolod Stakhov2025-03-061-44/+18
|\ \ | | | | | | Use caching framework in gpt module
| * | [Minor] Fix invocationvstakhov-cache-gptVsevolod Stakhov2025-03-061-1/+1
| | |
| * | [Rework] GPT: Use cache frameworkVsevolod Stakhov2025-03-061-44/+18
| |/
* | Move an upvalue check out of the closure returned by gen_check_closure()Dmitry Petrov2025-03-051-7/+6
| |
* | Improve handling of IP conditions in settingsDmitry Petrov2025-03-051-45/+45
| | | | | | | | | | | | | | * Skip invalid IPs (with appropriate error logging) (previously a bad IP would cause the subsequent IPs in a list to be ignored or make the whole IP condition to be ignored) * Add validated IPs/maps into a flat table * Log complete IP in case of invalid mask
* | Rework IP processing/checking in settingsDmitry Petrov2025-03-041-34/+35
|/ | | | | | | | * Avoid misleading "cannot parse ip" logging by checking for "map:" prefix early * Do not use tables for maps or IPs without mask * Normalize IPs by applying mask during processing * Add error logging for wrong IP mask * Simplify check_ip_settings() based on changes in process_ip_condition()