Re: finish() method on the status objects

2006-10-28 Thread Joe Flowers
Theo Van Dinter wrote: On Wed, Oct 25, 2006 at 12:57:52PM -0400, Joe Flowers wrote: I'd prefer to use M::SA->check_message_text(), but if I do a M::SA->check_message_text('This is a programmer's nightmare.'), then M::SA->check_message_text() will choke because of the (') in the middle of th

Re: finish() method on the status objects

2006-10-28 Thread Joe Flowers
FYI, *My tests show that this is causing a memory leak. Joe my $spamtest = Mail::SpamAssassin->new(); my $status = $spamtest->check($spamtest->parse($message)); if ($status->

Re: finish() method on the status objects

2006-10-26 Thread Theo Van Dinter
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

Re: finish() method on the status objects

2006-10-26 Thread Theo Van Dinter
On Wed, Oct 25, 2006 at 12:57:52PM -0400, Joe Flowers wrote: > I'd prefer to use M::SA->check_message_text(), but if I do a > M::SA->check_message_text('This is a programmer's nightmare.'), then > M::SA->check_message_text() will choke because of the (') in the middle > of the string. How do I p

Re: finish() method on the status objects

2006-10-25 Thread Joe Flowers
Theo Van Dinter wrote: You may also want to look at M::SA->check_message_text(). Theo, I'd prefer to use M::SA->check_message_text(), but if I do a M::SA->check_message_text('This is a programmer's nightmare.'), then M::SA->check_message_text() will choke because of the (') in the middle

Re: finish() method on the status objects

2006-10-24 Thread Justin Mason
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)); > [...] > > $stat

Re: finish() method on the status objects

2006-10-24 Thread Theo Van Dinter
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