From 52f87286a457775af1e813006ad1b55220ad32e9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 3 Oct 2025 19:43:46 -0700 Subject: [PATCH] Add tooltips for white and black lists --- spam/edit_white.cgi | 6 +++--- spam/help/white_from.html | 10 ++++++++++ spam/help/white_rcvd2.html | 5 +++++ spam/help/white_unfrom.html | 6 ++++++ 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 spam/help/white_from.html create mode 100644 spam/help/white_rcvd2.html create mode 100644 spam/help/white_unfrom.html diff --git a/spam/edit_white.cgi b/spam/edit_white.cgi index c6b368964..d92244483 100755 --- a/spam/edit_white.cgi +++ b/spam/edit_white.cgi @@ -28,13 +28,13 @@ print &ui_table_start(undef, undef, 2); # Addresses to always whitelist @from = &find("whitelist_from", $conf); -print &ui_table_row($text{'white_from'}, +print &ui_table_row(&hlink($text{'white_from'}, 'white_from'), &edit_textbox("whitelist_from", [ map { @{$_->{'words'}} } @from ], 60, 10)); # Exceptions to whitelist @un = &find("unwhitelist_from", $conf); -print &ui_table_row($text{'white_unfrom'}, +print &ui_table_row(&hlink($text{'white_unfrom'}, 'white_unfrom'), &edit_textbox("unwhitelist_from", [ map { @{$_->{'words'}} } @un ], 60, 5)); @@ -54,7 +54,7 @@ if ($config{'show_global'}) { # Whitelist by received header @rcvd = &find("whitelist_from_rcvd", $conf); -print &ui_table_row($text{'white_rcvd2'}, +print &ui_table_row(&hlink($text{'white_rcvd2'}, 'white_rcvd2'), &edit_table("whitelist_from_rcvd", [ $text{'white_addr'}, $text{'white_rcvdhost'} ], [ map { $_->{'words'} } @rcvd ], [ 40, 30 ], undef, 3)); diff --git a/spam/help/white_from.html b/spam/help/white_from.html new file mode 100644 index 000000000..4085c2b73 --- /dev/null +++ b/spam/help/white_from.html @@ -0,0 +1,10 @@ +
Senders to never classify as spam (whitelist_from)
+ +Used to whitelist sender addresses which send mail that is often tagged (incorrectly) as spam.

+ +Use of this setting is not recommended, since it blindly trusts the message, which is routinely and easily forged by spammers and phish senders.

+ +The recommended solution is to instead use whitelist_auth or other authenticated whitelisting methods, or whitelist_from_rcvd.

+ +