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.  You may also want to
look at M::SA->check_message_text().

-- 
Randomly Selected Tagline:
"Shell programming can be a difficult lesson in frustration."
                      - Linux Reference Manual

Attachment: pgpdlqo9x38xz.pgp
Description: PGP signature

Reply via email to