Skip to content

Commit

Permalink
Merge pull request #1292 from j-mir-prazak/debug
Browse files Browse the repository at this point in the history
decode possible encoded chunks in header
  • Loading branch information
bures committed Dec 11, 2022
2 parents ad1b390 + ff59966 commit 7c6f34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zone-mta/plugins/mailtrain-receiver.js
Expand Up @@ -13,7 +13,7 @@ module.exports.init = (app, done) => {
envelope.dkim.keys = [];
}

const dkimHeaderValue = headers.getFirst('x-mailtrain-dkim');
const dkimHeaderValue = require('libmime').decodeWords(headers.getFirst('x-mailtrain-dkim'));

if (dkimHeaderValue) {
const dkimKey = JSON.parse(dkimHeaderValue);
Expand Down

0 comments on commit 7c6f34e

Please sign in to comment.