Experiment: show infrastructure

This commit is contained in:
M66B
2021-11-09 18:44:54 +01:00
parent 817fa90bb0
commit cee85c78d5
12 changed files with 2759 additions and 4 deletions

View File

@@ -1659,6 +1659,20 @@ public class MessageHelper {
return sb.toString();
}
String getInfrastructure() throws MessagingException {
ensureHeaders();
String awsses = imessage.getHeader("X-SES-Outgoing", null);
if (!TextUtils.isEmpty(awsses))
return "awsses";
String sendgrid = imessage.getHeader("X-SG-EID", null);
if (!TextUtils.isEmpty(sendgrid))
return "sendgrid";
return null;
}
String getHash() throws MessagingException {
try {
return Helper.sha1(getHeaders().getBytes());