mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Process ARC-Authentication-Results
This commit is contained in:
parent
23122ec228
commit
efb0098eb7
1 changed files with 14 additions and 4 deletions
|
@ -1278,12 +1278,22 @@ public class MessageHelper {
|
|||
String[] getAuthentication() throws MessagingException {
|
||||
ensureHeaders();
|
||||
|
||||
String[] headers = imessage.getHeader("Authentication-Results");
|
||||
if (headers == null)
|
||||
List<String> all = new ArrayList<>();
|
||||
|
||||
String[] results = imessage.getHeader("Authentication-Results");
|
||||
if (results != null)
|
||||
all.addAll(Arrays.asList(results));
|
||||
|
||||
String[] aresults = imessage.getHeader("ARC-Authentication-Results");
|
||||
if (aresults != null)
|
||||
all.addAll(Arrays.asList(aresults));
|
||||
|
||||
if (all.size() == 0)
|
||||
return null;
|
||||
|
||||
for (int i = 0; i < headers.length; i++)
|
||||
headers[i] = MimeUtility.unfold(headers[i]);
|
||||
String[] headers = new String[all.size()];
|
||||
for (int i = 0; i < all.size(); i++)
|
||||
headers[i] = MimeUtility.unfold(all.get(i));
|
||||
|
||||
return headers;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue