Browse Source

[Minor] Remove redundent MIME from/recipients. Add from_ip.

tags/3.2
bradleydoherty59 2 years ago
parent
commit
46add45d21
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      lualib/lua_mime.lua

+ 1
- 5
lualib/lua_mime.lua View File

@@ -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 {}

Loading…
Cancel
Save