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
| [reply] [d/l] |
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
| [reply] |
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
| [reply] |