Handle case where we can't figure out the from https://github.com/webmin/usermin/issues/109

This commit is contained in:
Jamie Cameron
2024-02-27 19:31:40 -08:00
parent 6c3a7d1d5e
commit 60e424689d

View File

@@ -235,6 +235,12 @@ if (@must_regexp) {
}
}
# Check if we have a From address
if (!$rheader{'From'}) {
print STDERR "Could not work out From address\n";
exit 0;
}
# if spamassassin is installed, feed the email to it
$spam = &has_command("spamassassin");
if ($spam) {