You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Justin Mason <jm...@jmason.org> on 2006/10/24 19:06:11 UTC

Re: finish() method on the status objects

Theo Van Dinter writes:
> On Sun, Oct 22, 2006 at 08:13:35PM -0400, Joe Flowers wrote:
> > Can I get away with this without any memory or resource leaks? Is this OK?
> >   my $spamtest = Mail::SpamAssassin->new();
> >   my $status = $spamtest->check($spamtest->parse($message));
> [...]
> >   $status->finish();
> 
> Hrm.  I would normally suggest running $msg->finish(), but in this case, I
> believe that the $status->finish() should handle it.

well, I wouldn't recommend assuming it will be supported in future...
definitely a better idea to call $msg->finish();

--j.

> You may also want to
> look at M::SA->check_message_text().

Re: finish() method on the status objects

Posted by Theo Van Dinter <fe...@apache.org>.
On Tue, Oct 24, 2006 at 06:06:11PM +0100, Justin Mason wrote:
> > Hrm.  I would normally suggest running $msg->finish(), but in this case, I
> > believe that the $status->finish() should handle it.
> 
> well, I wouldn't recommend assuming it will be supported in future...
> definitely a better idea to call $msg->finish();

For the current 3.x series it should work.  We could definitely change things
in the future, but then we'll have to make check_message_text work or
otherwise get rid of it.

-- 
Randomly Selected Tagline:
Year, n.:
 	A period of three hundred and sixty-five disappointments.
 		-- Ambrose Bierce, "The Devil's Dictionary"