From 9118263c2073307495d3db181a0c2557538d6614 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Thu, 12 Dec 2024 12:59:10 +0300 Subject: [PATCH] Update links to archived pgl.yoyo.org Lua reference --- _posts/2019-05-13-rspamd-1.9.3.md | 4 ++-- doc/configuration/selectors.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2019-05-13-rspamd-1.9.3.md b/_posts/2019-05-13-rspamd-1.9.3.md index 7ed4f05fb..d8603c879 100644 --- a/_posts/2019-05-13-rspamd-1.9.3.md +++ b/_posts/2019-05-13-rspamd-1.9.3.md @@ -24,7 +24,7 @@ Some modules should set metric result as **least possible** result. For example, ## Tunable memory management -From this version, Rspamd allows to manage memory policies for [Lua garbage collection](http://pgl.yoyo.org/luai/i/2.10+Garbage+Collection) allowing to fit memory/cpu constraints more flexible. When Rspamd is built with `jemalloc` (e.g. in the default packages provided by the project), it can also print detailed memory statistics on full gc loops. +From this version, Rspamd allows to manage memory policies for [Lua garbage collection](https://web.archive.org/web/20240715205113/http://pgl.yoyo.org/luai/i/2.10+Garbage+Collection) allowing to fit memory/cpu constraints more flexible. When Rspamd is built with `jemalloc` (e.g. in the default packages provided by the project), it can also print detailed memory statistics on full gc loops. Here is an example for tuning GC in Rspamd when there are lots of free memory available (around 1Gb per scanner process): @@ -125,4 +125,4 @@ Here is the list of the most important bugs fixes: * [Project] Improve keys creation in rspamadm vault * [Rework] Move lua_worker to a dedicated unit * [WebUI] Add URL fragments (#) support -* [WebUI] Fix AJAX request URL \ No newline at end of file +* [WebUI] Fix AJAX request URL diff --git a/doc/configuration/selectors.md b/doc/configuration/selectors.md index 3b6418fff..aa34f1edd 100644 --- a/doc/configuration/selectors.md +++ b/doc/configuration/selectors.md @@ -201,7 +201,7 @@ The data definition part specifies what needs to be extracted. Here is the list | `received` | 1.8+ | Get list of received headers. If no arguments specified, returns list of tables. Otherwise, selects a specific element, e.g. `by_hostname` | `request_header` | 1.8+ | Get specific HTTP request header. The first argument must be header name. | `symbol` | 2.6+ | Get symbol with the name that is expected as first argument. Returns the symbol table (like task:get_symbol()) -| `time` | 1.8+ | Get task timestamp. The first argument is type:{::nomarkdown}{:/}The second argument is optional time format, see [os.date](https://pgl.yoyo.org/luai/i/os.date) description +| `time` | 1.8+ | Get task timestamp. The first argument is type:{::nomarkdown}{:/}The second argument is optional time format, see [os.date](https://web.archive.org/web/20231130145520/https://pgl.yoyo.org/luai/i/os.date) description | `to` | 1.8+ | Get principal recipient | `uid` | 2.6+ | Get ID of the task being processed | `urls` | 1.8+ | Get list of all urls. If no arguments specified, returns list of url objects. Otherwise, calls a specific method, e.g. `get_tld` @@ -230,7 +230,7 @@ The data definition part specifies what needs to be extracted. Here is the list | `prepend` | 2.0+ | Prepends a string or a strings list | `regexp` | 1.8+ | Regexp matching | `sort` | 2.0+ | Sort strings lexicographically -| `substring` | 1.8+ | Extracts substring. Arguments are equal to lua [string.sub](https://pgl.yoyo.org/luai/i/string.sub) +| `substring` | 1.8+ | Extracts substring. Arguments are equal to lua [string.sub](https://web.archive.org/web/20231130143649/https://pgl.yoyo.org/luai/i/string.sub) | `take_n` | 1.8+ | Returns the n first elements | `to_ascii` | 2.6+ | Returns the string with all non-ascii bytes replaced with the character given as second argument or `?` | `uniq` | 2.0+ | Returns a list of unique elements (using a hash table - no order preserved!)