mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-10-06 11:57:27 +08:00
updated log message structure
This commit is contained in:
parent
c49f9ebc18
commit
86bad47bfe
1 changed files with 8 additions and 2 deletions
|
@ -846,11 +846,17 @@ module.exports = (db, server, messageHandler) => {
|
||||||
action: entry.action,
|
action: entry.action,
|
||||||
origin: entry.origin || entry.source,
|
origin: entry.origin || entry.source,
|
||||||
src: entry.ip,
|
src: entry.ip,
|
||||||
dst: entry.mx,
|
dst: entry.host,
|
||||||
|
mx: entry.mx,
|
||||||
|
reason: entry.reason,
|
||||||
|
error: entry.error,
|
||||||
response: entry.response,
|
response: entry.response,
|
||||||
messageId: entry['message-id'],
|
messageId: entry['message-id'],
|
||||||
from: entry.from,
|
from: entry.from,
|
||||||
to: entry.forward || (entry.to && [].concat(typeof entry.to === 'string' ? entry.to.split(',') : entry.to || [])),
|
to:
|
||||||
|
(entry.forward &&
|
||||||
|
[].concat(typeof entry.forward === 'string' ? entry.forward.trim().split(/\s*,\s*/) : entry.forward || [])) ||
|
||||||
|
(entry.to && [].concat(typeof entry.to === 'string' ? entry.to.trim().split(/\s*,\s*/) : entry.to || [])),
|
||||||
transtype: entry.transtype,
|
transtype: entry.transtype,
|
||||||
time: entry.created
|
time: entry.created
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Add table
Reference in a new issue