From 3ed43e8f9a54630dd9e566f20f2352cadbd5b40d Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 17 Apr 2025 08:50:32 +0300 Subject: [PATCH] lua: Document base64.encode and base64.decode --- data/lua.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/data/lua.js b/data/lua.js index e353d1751..79772fa13 100644 --- a/data/lua.js +++ b/data/lua.js @@ -91,6 +91,30 @@ export const lua_functions = [ as the parent.` }, + { + name: 'base64.encode', + args: { + input: { + type: 'string', + text: 'Data to encode', + } + }, + tags: [ 'dovecot' ], + text: `Base64 encodes the provided input.` + }, + + { + name: 'base64.decode', + args: { + input: { + type: 'string', + text: 'Data to decode', + } + }, + tags: [ 'dovecot' ], + text: `Base64 decodes the provided input.` + }, + { name: 'restrict_global_variables', args: {