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().