TLS phrases

This commit is contained in:
M66B
2022-01-08 20:09:20 +01:00
parent 9b3449f033
commit 82357486ed
2 changed files with 6 additions and 3 deletions

View File

@@ -2090,8 +2090,10 @@ public class MessageHelper {
}
// (qmail nnn invoked by uid nnn); 1 Jan 2022 00:00:00 -0000
if (header.contains("qmail") && header.contains("invoked by uid")) {
Log.i("--- found qmail");
// by <host name> (Postfix, from userid nnn)
if (header.matches(".*\\(qmail \\d+ invoked by uid \\d+\\).*") ||
header.matches(".*\\(Postfix, from userid \\d+\\).*")) {
Log.i("--- phrase");
return true;
}