mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Native DKIM: fixed simple header name/value
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user