Correct AWL columns
authorJamie Cameron <jcameron@webmin.com>
Sun, 9 Nov 2008 06:13:40 +0000 (06:13 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 9 Nov 2008 06:13:40 +0000 (06:13 +0000)
spam/CHANGELOG
spam/edit_awl.cgi
spam/lang/en

index 4baeac3..da00854 100644 (file)
@@ -15,3 +15,5 @@ Added global configuration settings to use MySQL, PostgreSQL or LDAP backends fo
 Auto-whitelists can now be viewed, deleted from and cleared for all users on the system. An access control option allows this to be limited to just certain users or group members.
 ---- Changes since 1.430 ----
 Added buttons to the auto-whitelist page for permanently allowing or denying selected addresses.
+---- Changes since 1.440 ----
+Corrected the columns on the auto-whitelist page, to show the message count and score.
index 6abb6f9..4ed3040 100644 (file)
@@ -78,6 +78,7 @@ else {
        print &ui_columns_start([ "",
                                  $text{'awl_email'},
                                  $text{'awl_ip'},
+                                 $text{'awl_count'},
                                  $text{'awl_score'} ], undef, 0, \@tds);
        foreach $k (@keys) {
                ($email, $ip, $rest) = split(/\|/, $k);
@@ -90,7 +91,8 @@ else {
                else {
                        $ip = $text{'awl_unknown'};
                        }
-               print &ui_checked_columns_row([ $email, $ip, $awl{$k} ],
+               $score = $awl{$k."|totscore"};
+               print &ui_checked_columns_row([ $email, $ip, $awl{$k}, $score ],
                                              \@tds, "d", $k);
                }
        print &ui_columns_end();
index f10ce3f..e4976da 100644 (file)
@@ -349,6 +349,7 @@ awl_ok=Search
 awl_searching=Showing auto-whitelist entries matching $1 ..
 awl_email=Email address
 awl_ip=Sender's IP or network
+awl_count=Messages received
 awl_score=Score to apply
 awl_none=None
 awl_unknown=Unknown