From 90e95a76b7d41708e5d13309dd27c9e3617dbbf4 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 10 Aug 2024 22:39:47 +0100 Subject: [PATCH] Add anonymous email parsing Add option to allow unknown/anonymous email parsing for unknown contacts/domains. This will be disabled by default due to the potential for spam, but can be turned on in the settings if required. --- cron_ticket_email_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index 58be38ba5..672377fe2 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -417,7 +417,7 @@ function getInboxFolder($client, $inboxNames) { if (addTicket($contact_id, $contact_name, $contact_email, $client_id, $date, $subject, $message_body, $message->getAttachments(), $original_message_file)) { $email_processed = true; } - } else if ($config_ticket_email_parse_unknown_senders) { + } elseif ($config_ticket_email_parse_unknown_senders) { // Parse even if the sender is unknown if (addTicket(0, 'Guest', $from_email, 0, $date, $subject, $message_body, $message->getAttachments(), $original_message_file)) {