Changed regex to only exclude from postmaster or daemon.

This commit is contained in:
Craig Hodges 2024-09-30 19:07:01 -05:00
parent bd5621ce1e
commit da3a6d636e
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ if ($messages->count() > 0) {
}
} elseif ($config_ticket_email_parse_unknown_senders) {
// Parse even if the sender is unknown
$bad_from_pattern = "/daemon|postmaster|reply|root|admin/i";
$bad_from_pattern = "/daemon|postmaster/i";
if (!(preg_match($bad_from_pattern, $from_email))) {
if (addTicket(0, $from_name, $from_email, 0, $date, $subject, $message_body, $message->getAttachments(), $original_message_file)) {
$email_processed = true;