mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix email header date (zone offset)
This commit is contained in:
parent
bc2f2a3577
commit
5b0af53702
2 changed files with 36 additions and 2 deletions
|
|
@ -70,14 +70,13 @@ end
|
|||
-- ##############################################
|
||||
|
||||
local function buildMessageHeader(now_ts, from, to, cc, subject, body)
|
||||
local now = os.date("%a, %d %b %Y %X", now_ts) -- E.g. "Tue, 3 Apr 2018 14:58:00"
|
||||
local msg_id = "<" .. now_ts .. "." .. os.clock() .. "@ntopng>"
|
||||
|
||||
local lines = {
|
||||
"From: " .. from,
|
||||
"To: " .. to,
|
||||
"Subject: " .. subject,
|
||||
"Date: " .. now,
|
||||
"Date: " .. format_utils.formatEpochRFC2822(now_ts),
|
||||
"Message-ID: " .. msg_id,
|
||||
"Content-Type: text/html; charset=UTF-8",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue