Fix warning message when global filters are disabled.
authorJamie Cameron <jcameron@webmin.com>
Tue, 20 Oct 2009 20:31:29 +0000 (13:31 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 20 Oct 2009 20:31:29 +0000 (13:31 -0700)
filter/filter-lib.pl
filter/index.cgi
filter/lang/en

index b2ae130..344023e 100755 (executable)
@@ -601,7 +601,7 @@ return 1;   # Always can for now
 # mailbox, which prevents this module from configuring anything useful
 sub no_user_procmailrc
 {
-local $sconfig = &foreign_config("spam");
+local %sconfig = &foreign_config("spam");
 local @recipes = &procmail::parse_procmail_file(
        $sconfig{'global_procmailrc'});
 local ($force) = grep { $_->{'action'} eq '$DEFAULT' &&
index c7db1fa..58f3a3e 100755 (executable)
@@ -30,7 +30,7 @@ if ($alias) {
        else {
                $msg = 'index_alias';
                }
-       print $text{$msg},"<br>\n";
+       print "<b>$text{$msg}</b><br>\n";
        print "<ul>\n";
        foreach $dest (&describe_alias_dest(\@values)) {
                print "<li>$dest\n";
@@ -40,7 +40,7 @@ if ($alias) {
 
 # Check if /etc/procmailrc forces local delivery
 if (&no_user_procmailrc()) {
-       print $text{'index_force'},"<p>\n";
+       print "<b>",$text{'index_force'},"</b><p>\n";
        }
 
 @filters = &list_filters();
index 7541be9..097594c 100644 (file)
@@ -33,7 +33,7 @@ index_return=filter list
 index_warn=Warning - The program <tt>procmail</tt> used for mail filtering is not installed on this system. Any filters defined below are unlikely to work.
 index_alias=Warning - The system is configured to forward all email to your mailbox to the following destinations. Filters defined here will not be used.
 index_aliasme=Note - The system is also configured forward all email to :
-index_force=Warning - The system is configured to not process user-defined mail filters. Any filters defined below are unlikely to work.
+index_force=Warning - The system is configured to not process user-defined mail filters. Filters defined here will not be used.
 index_period=Minimum time between autoreplies
 index_noperiod=No minimum
 index_mins=minutes