Mark messages with failed DKIM, SPF or DMARC authentication

This commit is contained in:
M66B
2019-04-12 16:15:42 +02:00
parent c312725446
commit a29de1bd3f
8 changed files with 1744 additions and 1 deletions

View File

@@ -455,6 +455,11 @@ public class MessageHelper {
return (TextUtils.isEmpty(msgid) ? Long.toString(uid) : msgid);
}
String getAuthentication() throws MessagingException {
String header = imessage.getHeader("Authentication-Results", "");
return (header == null ? null : header.replaceAll("\\r?\\n", ""));
}
Address getSender() throws MessagingException {
String sender = imessage.getHeader("Sender", null);
if (sender == null)