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 2005/10/04 21:15:50 UTC
[Bug 4617] Can't call method "finish" on an undefined value
http://bugzilla.spamassassin.org/show_bug.cgi?id=4617
------- Additional Comments From felicity@apache.org 2005-10-04 12:15 -------
Subject: Re: New: Can't call method "finish" on an undefined value
On Tue, Oct 04, 2005 at 12:05:34PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote:
> I am getting the following messages in my log file now that I am running
> SpamAssassin 3.1.0.
>
> spamd[21520]: Can't call method "finish" on an undefined value at
> /opt/perl/lib/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line 397.
Hrm. Looking at the AWL plugin, it looks like if the eval fails to create the
whitelist object:
$whitelist = Mail::SpamAssassin::AutoWhitelist->new($pms->{main});
we'll check for the error, and then specifically try to run:
eval { $whitelist->finish(); };
which is line 397. I'd say we ought to wrap that in a "if (defined
$whitelist)" check.
I'm curious why AWL is failing though, can you run with -D and see what error
is being returned? The code looks like it'd be an error opening the awl file.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.