aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-31 17:48:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-31 17:48:50 +0100
commit51e2a8c05682c0bbbfb940681bf12b93b4719f7f (patch)
treedc04847adb8be1be153f681344d924c5feb0b551 /src/lua
parent7c09818f4165382cbd65a6a33b655a2def0ffc65 (diff)
downloadrspamd-51e2a8c05682c0bbbfb940681bf12b93b4719f7f.tar.gz
rspamd-51e2a8c05682c0bbbfb940681bf12b93b4719f7f.zip
[Fix] Fix usage of util.parse_mail_address
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 64b25c14a..50fa6d397 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -183,7 +183,7 @@ LUA_FUNCTION_DEF (util, get_tld);
LUA_FUNCTION_DEF (util, glob);
/***
- * @function util.parse_mail_address(str)
+ * @function util.parse_mail_address(str, pool)
* Parses email address and returns a table of tables in the following format:
*
* - `name` - name of internet address in UTF8, e.g. for `Vsevolod Stakhov <blah@foo.com>` it returns `Vsevolod Stakhov`
@@ -192,6 +192,7 @@ LUA_FUNCTION_DEF (util, glob);
* - `domain` - domain part (if present), e.g. `foo.com`
*
* @param {string} str input string
+ * @param {rspamd_mempool} pool memory pool to use
* @return {table/tables} parsed list of mail addresses
*/
LUA_FUNCTION_DEF (util, parse_mail_address);