From c44fa30792b3a03576ed9cf6347d733f262f601f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 15 Aug 2026 12:29:39 -0400 Subject: [PATCH] Fix Mail settings tabs regression and user menu coloring --- admin/post/settings_mail.php | 2 +- admin/settings_mail.php | 41 +++++++++++++++++++++--------------- includes/filter_footer.php | 2 +- includes/top_nav.php | 5 ++--- 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/admin/post/settings_mail.php b/admin/post/settings_mail.php index fe50952e0..c9790c6bf 100644 --- a/admin/post/settings_mail.php +++ b/admin/post/settings_mail.php @@ -3,7 +3,7 @@ defined('FROM_POST_HANDLER') || die("Direct file access is not allowed"); // Saves and tests return to the tab they were submitted from (see settings_mail.php) -$mail_tabs = ['smtp', 'imap', 'oauth', 'from', 'tests']; +$mail_tabs = ['sending', 'receiving', 'oauth', 'from', 'tests']; $mail_tab_redirect = 'settings_mail.php'; if (isset($_POST['tab']) && in_array($_POST['tab'], $mail_tabs, true)) { $mail_tab_redirect .= '?tab=' . $_POST['tab']; diff --git a/admin/settings_mail.php b/admin/settings_mail.php index 152cafad3..7a4fc470b 100644 --- a/admin/settings_mail.php +++ b/admin/settings_mail.php @@ -14,10 +14,10 @@ $oauth_needed = in_array($config_smtp_provider, ['google_oauth', 'microsoft_oaut || in_array($config_imap_provider, ['google_oauth', 'microsoft_oauth'], true); // ---- Active tab ------------------------------------------------------------- -// The tab lives in the URL (?tab=imap) so it can be linked, bookmarked, survives a +// The tab lives in the URL (?tab=receiving) so it can be linked, bookmarked, survives a // reload, and lets the POST handlers send you back to the tab you saved from -$mail_tabs = ['smtp', 'imap', 'oauth', 'from', 'tests']; -$active_tab = isset($_GET['tab']) && in_array($_GET['tab'], $mail_tabs, true) ? $_GET['tab'] : 'smtp'; +$mail_tabs = ['sending', 'receiving', 'oauth', 'from', 'tests']; +$active_tab = isset($_GET['tab']) && in_array($_GET['tab'], $mail_tabs, true) ? $_GET['tab'] : 'sending'; // A direct link to the OAuth tab reveals it even when no OAuth provider is selected yet if ($active_tab === 'oauth') { @@ -74,12 +74,12 @@ $imap_ready = $imap_standard_ready || $imap_oauth_ready;