in reply to spam content checker

Mail::SpamAssassin::PerMsgStatus has a $score = $status->get_body_only_points() method.

That should do just what you are looking for.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: spam content checker
by geetha (Initiate) on Jan 24, 2008 at 10:17 UTC
    Hi, Thanks for your reply. I have installed the SA-3.2.4 and found the PerMsgStatus module also. I do not know, how to optimizing the perl modules. Here I need to call only the object-get_body_only_points(). Please help me. Thanks Geetha
      Did you read the documentation for this module? The synopsis has a comprehensive example.
      my $spamtest = Mail::SpamAssassin->new(); my $mail = $spamtest->parse($message); my $status = $spamtest->check($mail); my $score = $status->get_body_only_points();

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        Hi,, Thanks for your reply. I went through the module documentation. I have found the synopsis in the following path /root/Mail-SpamAssassin-3.2.4/blib/man3/Mail::SpamAssassin::PerMsgStatus.3pm. Can we edit the synopsis (how to enable the $score variable for body)? .IX Item "$score = $status->get_body_only_points()". regards geetha geeth4sg@gmail.com