You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/08/18 15:06:22 UTC
[Bug 3699] New: spamassassin -lint should warn if a description is empty
http://bugzilla.spamassassin.org/show_bug.cgi?id=3699
Summary: spamassassin -lint should warn if a description is empty
Product: Spamassassin
Version: unspecified
Platform: All
OS/Version: other
Status: NEW
Severity: major
Priority: P5
Component: spamassassin
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: mbr@freebsd.org
Without this patch you'll get:
Use of uninitialized value in length at SpamAssassin/Conf/Parser.pm line 456
Fix:
--- SpamAssassin/Conf/Parser.pm.orig Wed Aug 18 15:00:44 2004
+++ SpamAssassin/Conf/Parser.pm Wed Aug 18 15:00:23 2004
@@ -404,6 +404,11 @@
{
# Check for description and score issues in lint fashion
while ( ($k,$v) = each %{$conf->{descriptions}} ) {
+ if (!$v) {
+ warn "warning: description for $k is empty\n";
+ $conf->{errors}++;
+ next;
+ }
if (length($v) > 50) {
warn "warning: description for $k is over 50 chars\n";
$conf->{errors}++;
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.