From 97c292883045adc56861e6942a7f39ce51620777 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 28 Jun 2024 11:25:58 -0400 Subject: [PATCH] Remove Duplicate Line of Code to connect to IMAP Server and find inbox --- cron_ticket_email_parser.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index 6be93eb5..9acc0b38 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -329,24 +329,6 @@ $client->connect(); // Possible names for the inbox folder $inboxNames = ['Inbox', 'INBOX', 'inbox']; -// Initialize the client manager and create the client -$clientManager = new ClientManager(); -$client = $clientManager->make([ - 'host' => $config_imap_host, - 'port' => $config_imap_port, - 'encryption' => $config_imap_encryption, - 'validate_cert' => true, - 'username' => $config_imap_username, - 'password' => $config_imap_password, - 'protocol' => 'imap' -]); - -// Connect to the IMAP server -$client->connect(); - -// Possible names for the inbox folder -$inboxNames = ['Inbox', 'INBOX', 'inbox']; - // Function to get the correct inbox folder function getInboxFolder($client, $inboxNames) { foreach ($inboxNames as $name) {