http://bugzilla.spamassassin.org/show_bug.cgi?id=4176





------- Additional Comments From [EMAIL PROTECTED]  2005-05-05 14:25 -------
Justin said:
> yep, it really is that simple ;)

Wanna bet? :-)

sa-learn calls Mail::SpamAssassin::parse which I guess is a class method, which
gets passed the string 'Mail::SpamAssassin' as the first argument, and so does
not have a Mail::SpamAssassin opject as $self to pass to the
Mail::SpamAssassin::Message->new that it calls, which then calls
Mail::SpamAssassin::Message::Node->new which then calls
Mail::SpamAssassin::HTML->new which then can't access the main object because
there isn't any.

Ok, I see that sa-learn has an instance of Mail::SpamAssassin there called
$spamtest. Would it work to replace the call to Mail::SpamAssassin->parse with
$spamtest->parse?

grep shows that parse is the only function besides new that is called as a class
method, and it is used that way in sa-learn, corpora/mass-find-nonspam, and
tools/speedtest. I did't look in the latter two to see if they have instances of
Mail::SpamAssassin handy when they call parse so it can be called as an instance
method instead of as a class method.

Yeh, this simple :-)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to