summaryrefslogtreecommitdiffstats
path: root/lualib/lua_mime.lua
diff options
context:
space:
mode:
authorbradleydoherty59 <bradleydoherty59@gmail.com>2021-11-23 16:34:59 -0600
committerbradleydoherty59 <bradleydoherty59@gmail.com>2021-11-23 16:34:59 -0600
commit46add45d21cd9d1420565acae5a22291ab60c225 (patch)
tree6ceb9ca11d987071afa0133e93def63976fd1cf2 /lualib/lua_mime.lua
parent192ccf6a9f12ad2d1ff530300aebe61595ff5dd6 (diff)
downloadrspamd-46add45d21cd9d1420565acae5a22291ab60c225.tar.gz
rspamd-46add45d21cd9d1420565acae5a22291ab60c225.zip
[Minor] Remove redundent MIME from/recipients. Add from_ip.
Diffstat (limited to 'lualib/lua_mime.lua')
-rw-r--r--lualib/lua_mime.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/lualib/lua_mime.lua b/lualib/lua_mime.lua
index 308400c93..6b0ece58d 100644
--- a/lualib/lua_mime.lua
+++ b/lualib/lua_mime.lua
@@ -582,18 +582,14 @@ exports.message_to_ucl = function(task)
result.digest = task:get_digest()
result.newlines = task:get_newlines_type()
result.headers = task:get_headers(true) or {}
-
-- Envelope (smtp) information form email
local envelope = {}
- -- Want to differentiate the Mime and SMTP from/recipients here
envelope.from_smtp = task:get_from('smtp')
- envelope.from_mime = task:get_from('mime')
envelope.recipients_smtp = task:get_recipients('smtp')
- envelope.recipients_mime = task:get_recipients('mime')
-
envelope.helo = task:get_helo()
envelope.hostname = task:get_hostname()
envelope.client_ip = task:get_client_ip()
+ envelope.from_ip = task:get_from_ip()
result.envelope = envelope
local parts = task:get_parts() or {}