Added recognition of Gmail and Outlook

This commit is contained in:
M66B
2021-11-11 09:26:07 +01:00
parent 53750238ac
commit 7aa19e2f70
4 changed files with 139 additions and 0 deletions

View File

@@ -1720,6 +1720,14 @@ public class MessageHelper {
if (!TextUtils.isEmpty(xmailer) && xmailer.contains("PHPMailer"))
return "phpmailer";
String gmail = imessage.getHeader("X-Gm-Message-State", null);
if (!TextUtils.isEmpty(gmail))
return "gmail";
String outlook = imessage.getHeader("x-ms-publictraffictype", null);
if (!TextUtils.isEmpty(outlook))
return "outlook";
return null;
}