Drop first header requirement for qmail/Postfix

This commit is contained in:
M66B 2022-02-02 10:09:36 +01:00
parent cbb272b787
commit bfe1d1fbad
2 changed files with 4 additions and 5 deletions

4
FAQ.md
View File

@ -4497,8 +4497,8 @@ To show shields, the option *Show authentication status indicator* in the displa
A message will be consired safely transported if *every* [Received](https://datatracker.ietf.org/doc/html/rfc2821#section-4.4) header:
* contains the phrase 'using TLS', 'via HTTP', 'version=TLS'
* contains the phrase '(qmail <nnn> invoked by uid <nnn>)' in the first added header
* contains the phrase '(Postfix, from userid nnn)' in the first added header
* contains the phrase '(qmail <nnn> invoked by uid <nnn>)'
* contains the phrase '(Postfix, from userid nnn)'
* has a *by* with a local address
* has a *by* xxx.google.com
* has a *from* with a local address

View File

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