mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Added recognition of Gmail and Outlook
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user