mailtrain
mailtrain copied to clipboard
decode possible encoded chunks in header
dkimKey expects JSON, however serveral times now, mailtrain started giving dkim header as encoded chunks. there is no try and catch on the json parse, so the emails won't be sent.
require('libmime').decodeWords( header ) decodes chunks if present, or leaves the string alone - so even if the json is passed, it should not change the string.
i could not find the reason for the encoding so far
Thanks. I've never encountered this problem. At least I'm not aware of it. Could we have one more person to test this PR on their installation before I merge it? Just to be sure this does not break anything.
Thanks. I've never encountered this problem. At least I'm not aware of it. Could we have one more person to test this PR on their installation before I merge it? Just to be sure this does not break anything.
@bures This change solves the problem #1142
Perfect. Thank you both.