Compare commits
1 commit
ca2bb8c610
...
7f1aaab244
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f1aaab244 |
3 changed files with 1 additions and 7 deletions
|
|
@ -320,10 +320,6 @@ func (h *HeaderAnalyzer) checkHeader(email *EmailMessage, headerName string, imp
|
||||||
valid = false
|
valid = false
|
||||||
headerIssues = append(headerIssues, "Invalid Message-ID format (should be <id@domain>)")
|
headerIssues = append(headerIssues, "Invalid Message-ID format (should be <id@domain>)")
|
||||||
}
|
}
|
||||||
if len(email.Header["Message-Id"]) > 1 {
|
|
||||||
valid = false
|
|
||||||
headerIssues = append(headerIssues, fmt.Sprintf("Multiple Message-ID headers found (%d); only one is allowed", len(email.Header["Message-Id"])))
|
|
||||||
}
|
|
||||||
case "Date":
|
case "Date":
|
||||||
// Validate date format
|
// Validate date format
|
||||||
if _, err := h.parseEmailDate(value); err != nil {
|
if _, err := h.parseEmailDate(value); err != nil {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
case "domain_pass":
|
case "domain_pass":
|
||||||
case "orgdomain_pass":
|
case "orgdomain_pass":
|
||||||
return "text-success";
|
return "text-success";
|
||||||
case "permerror":
|
|
||||||
case "error":
|
case "error":
|
||||||
case "fail":
|
case "fail":
|
||||||
case "missing":
|
case "missing":
|
||||||
|
|
@ -52,7 +51,6 @@
|
||||||
case "neutral":
|
case "neutral":
|
||||||
case "invalid":
|
case "invalid":
|
||||||
case "null":
|
case "null":
|
||||||
case "permerror":
|
|
||||||
case "error":
|
case "error":
|
||||||
case "null_smtp":
|
case "null_smtp":
|
||||||
case "null_header":
|
case "null_header":
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@
|
||||||
} else if (spfResult === "temperror" || spfResult === "permerror") {
|
} else if (spfResult === "temperror" || spfResult === "permerror") {
|
||||||
segments.push({
|
segments.push({
|
||||||
text: "encountered an error",
|
text: "encountered an error",
|
||||||
highlight: { color: "danger", bold: true },
|
highlight: { color: "warning", bold: true },
|
||||||
link: "#authentication-spf",
|
link: "#authentication-spf",
|
||||||
});
|
});
|
||||||
segments.push({ text: ", check your SPF record configuration" });
|
segments.push({ text: ", check your SPF record configuration" });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue