in reply to Re: spam content checker
in thread spam content checker

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

Replies are listed 'Best First'.
Re^3: spam content checker
by CountZero (Bishop) on Jan 24, 2008 at 22:45 UTC
    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
        why would you want to edit the synopsis? Your request does not make much sense to me. If you are not happy with the documentation, please contact the author or maintainer of this module.

        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