Skip to content

Commit 64d1ef7

Browse files
committed
ZMS-40: marked.spam webhook add verificationResults to payload
1 parent e431d47 commit 64d1ef7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

webhooks.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ module.exports.start = callback => {
170170
subject: true,
171171
mailbox: true,
172172
mimeTree: true,
173-
idate: true
173+
idate: true,
174+
verificationResults: true
174175
}
175176
}
176177
);
@@ -213,6 +214,10 @@ module.exports.start = callback => {
213214
data.messageId = messageData.msgid;
214215
data.subject = messageData.subject;
215216
data.date = messageData.idate.toISOString();
217+
218+
if (messageData.verificationResults) {
219+
data.verificationResults = messageData.verificationResults;
220+
}
216221
}
217222

218223
for (let webhook of webhooks) {

0 commit comments

Comments
 (0)