This commit is contained in:
M66B
2021-12-11 20:47:57 +01:00
parent 3eaef74b3e
commit 9c7252eda0
2 changed files with 1 additions and 7 deletions

View File

@@ -302,6 +302,7 @@ public class MessageHelper {
else
imessage.setHeader("Date", mdf.format(new Date(message.received)));
} else {
// https://datatracker.ietf.org/doc/html/rfc2822#section-3.6.6
ByteArrayInputStream bis = new ByteArrayInputStream(message.headers.getBytes());
Enumeration<Header> headers = new InternetHeaders(bis).getAllHeaders();
while (headers.hasMoreElements()) {