aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorJan Smutny <js@excello.cz>2020-04-19 23:32:30 +0200
committerJan Smutny <js@excello.cz>2020-04-20 22:57:05 +0200
commitebfde825561e434cb7d9a9da5bbe2398290030c2 (patch)
tree7f29eb7d597548658c0628aa8d6719072813f42a /src/lua/lua_util.c
parent7457d466d9e0d8186e1141f89b6265c13b7140ea (diff)
downloadrspamd-ebfde825561e434cb7d9a9da5bbe2398290030c2.tar.gz
rspamd-ebfde825561e434cb7d9a9da5bbe2398290030c2.zip
[Feature] extend lua api
add new value accessible by key 'raw' to the table returned by util:parse_mail_address and task:get_from
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 7f9918c61..5948f4b4b 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -204,6 +204,7 @@ LUA_FUNCTION_DEF (util, glob);
* @function util.parse_mail_address(str, [pool])
* Parses email address and returns a table of tables in the following format:
*
+ * - `raw` - the original value without any processing
* - `name` - name of internet address in UTF8, e.g. for `Vsevolod Stakhov <blah@foo.com>` it returns `Vsevolod Stakhov`
* - `addr` - address part of the address
* - `user` - user part (if present) of the address, e.g. `blah`