Native DKIM: fixed simple header name/value

pull/212/head
M66B 2 years ago
parent 7fdd3b9b3e
commit d2df8d0630

@ -2084,13 +2084,18 @@ public class MessageHelper {
if ("DKIM-Signature".equals(key))
head.append(key).append(": ").append(value);
else {
// Find original header/name
// Find original header/name (case sensitive)
int _idx = values.length - idx;
Enumeration<Header> oheaders = ih.getAllHeaders();
while (oheaders.hasMoreElements()) {
Header oheader = oheaders.nextElement();
if (key.equalsIgnoreCase(oheader.getName()))
head.append(oheader.getName()).append(": ")
.append(oheader.getValue());
if (key.equalsIgnoreCase(oheader.getName())) {
if (_idx-- == 0) {
head.append(oheader.getName()).append(": ")
.append(oheader.getValue());
break;
}
}
}
}
} else if ("relaxed".equals(c[0])) {

Loading…
Cancel
Save