X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=postfix-logwatch;h=92ed62138fe0d37ab30268f40c8e5ccbc3ee67d3;hb=6afb8e258a5a2a0e7c72c4c25927dde9d1e2ad89;hp=3e4a6731a6685275ee73ac95f07e988b1463df2a;hpb=af564700c95b53f3c2c6f111c1a8b5fd32575728;p=postfix-logwatch.git diff --git a/postfix-logwatch b/postfix-logwatch index 3e4a673..92ed621 100644 --- a/postfix-logwatch +++ b/postfix-logwatch @@ -1378,8 +1378,17 @@ sub print_summary_report (\@) { $$divisor == $Totals{$keyname} ? 100.00 : $Totals{$keyname} * 100 / $$divisor; } else { - push @{$lines[$cur_level]}, - sprintf "$fmt %-23s $extra\n", $total, $desc, commify ($Totals{$keyname}); + my $new_line; + if ($extra eq '') { + $new_line = sprintf("$fmt %-23s \n", $total, $desc); + } + else { + $new_line = sprintf("$fmt %-23s $extra\n", + $total, + $desc, + commify ($Totals{$keyname})); + } + push @{$lines[$cur_level]}, $new_line } } } @@ -1847,7 +1856,7 @@ sub postfix_policy_spf($) { # KeyboardInterrupt $line =~ /^Read line: "/ or $line =~ /^Found the end of entry$/ or - $line =~ /^Config: {/ or + $line =~ /^Config: \{/ or $line =~ /^spfcheck: pyspf result/ or $line =~ /^Starting$/ or $line =~ /^Normal exit$/ or