diff options
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 188a19671..061ed1ee2 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2567,6 +2567,10 @@ lua_task_get_emails (lua_State * L) if (task) { if (task->message) { + if (task->cfg) { + max_urls = task->cfg->max_lua_urls; + } + if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO, ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) { return luaL_error (L, "invalid arguments"); |