commit cd60c16: [Minor] Allow rspamd_text objects to be sent via SMTP
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Nov 4 17:56:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-04 13:08:07 +0000
URL: https://github.com/rspamd/rspamd/commit/cd60c1621b2f90aede6584a490aa2a8abf897980
[Minor] Allow rspamd_text objects to be sent via SMTP
---
lualib/lua_smtp.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lualib/lua_smtp.lua b/lualib/lua_smtp.lua
index 05667992b..a15f1ae17 100644
--- a/lualib/lua_smtp.lua
+++ b/lualib/lua_smtp.lua
@@ -107,7 +107,7 @@ local function sendmail(opts, message, callback)
-- DATA stage
local function data_done_cb(merr, mdata)
if no_error_read(merr, mdata, '3') then
- if type(message) == 'string' then
+ if type(message) == 'string' or type(message) == 'userdata' then
conn:add_write(pre_quit_cb, {message, CRLF.. '.' .. CRLF})
else
table.insert(message, CRLF.. '.' .. CRLF)
More information about the Commits
mailing list