aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5489 from heptalium/masterVsevolod Stakhov2025-06-051-1/+1
|\ | | | | Reputation Plugin: Fix comment to correspond the code above
| * Fix comment to correspond the code aboveJens Meißner2025-06-031-1/+1
| |
* | [Minor] Log the token usage for OpenAI (compatible) plain conversionLucas Rolff2025-06-031-0/+4
|/
* Merge pull request #5477 from japc/multimap-type-errVsevolod Stakhov2025-05-221-0/+3
|\ | | | | [Minor] Print error on multimap invalid type
| * [Minor] Print error on multimap invalid typeJose Celestino2025-05-221-0/+3
| |
* | Merge pull request #5428 from rspamd/vstakhov-replies-fake-rcptVsevolod Stakhov2025-05-222-31/+57
|\ \ | |/ |/| [Rework] Replies: consider all recipients and use smtp ones
| * [Fix] Known senders: More recipients test logicvstakhov-replies-fake-rcptVsevolod Stakhov2025-05-221-17/+43
| |
| * [Fix] Known senders: Use the same logic as in the replies moduleVsevolod Stakhov2025-05-221-1/+1
| |
| * [Rework] Replies: consider all recipients and use smtp onesVsevolod Stakhov2025-04-141-13/+13
| |
* | [Minor] Fix formattingVsevolod Stakhov2025-05-141-7/+7
| |
* | Remove "thinking" and fix errorlogNameWeb2025-05-091-2/+15
| | | | | | | | | | Some models used by Ollama will include "thinking" before the actual response. We now remove this. Also fixed error logging, which probably intended to also log "first_message".
* | Merge branch 'master' into temp2Kevin Shah2025-04-221-1/+1
|\ \
| * | [Fix] Arc: Use tonumber when comparingVsevolod Stakhov2025-04-221-1/+1
| | | | | | | | | | | | Issue: #4044
* | | Added exclusion list for reputationkevinzb562025-04-211-17/+94
|/ /
* / [Minor] Use module name when calling `set_pre_result`Andrew Lewis2025-04-162-2/+2
|/
* [Minor] contextal: conditionally disable timer, minor changesAndrew Lewis2025-04-081-6/+12
|
* [Fix] Greylist: Improve body hash calculationsvstakhov-bh-greylistingVsevolod Stakhov2025-03-311-0/+23
|
* Merge pull request #5386 from rspamd/vstakhov-maps-stuffVsevolod Stakhov2025-03-241-6/+7
|\ | | | | Improve maps status visibility
| * [Minor] Hfilter: add maps with descriptionVsevolod Stakhov2025-03-241-6/+7
| |
* | [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 #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 #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()
* [Feature] Allow to disable rbls from mapVsevolod Stakhov2025-02-271-6/+27
|
* [Feature] Allow additional categories to be defined in GPTvstakhov-gpt-tunes2Vsevolod Stakhov2025-02-251-32/+108
|
* [Minor] Tune cachingVsevolod Stakhov2025-02-251-4/+16
|
* [Minor] Tune cachingVsevolod Stakhov2025-02-251-5/+7
|
* [Feature] Cache LLM repliesVsevolod Stakhov2025-02-251-49/+124
|
* [Feature] Improve prompt and use plaintext instead of JSONVsevolod Stakhov2025-02-251-11/+104
|
* [Minor] GPT: Allow to trigger on specific symbolsVsevolod Stakhov2025-02-241-15/+36
|