Hi, On Sun, 31 Aug 2003 12:51:44 -0700 "Lee Mahan" <[EMAIL PROTECTED]> wrote:
> I am trying to develop a connection with spam assassin where the > mail message is contained in a MySQL database using either PHP or > Perl. Perhaps I'm too tired or just haven't had enough coffee, but I > can't seem to get it to work...can someone walk me through it. If you're connecting to MySQL, you may want to use Mail::SpamAssassin directly instead of calling out to spamc. See `perldoc Mail::SpamAssassin`: my $mail = Mail::SpamAssassin::NoMailAudit->new(); # add/replace with DBI call to pull mail message from MySQL my $spamtest = Mail::SpamAssassin->new(); my $status = $spamtest->check ($mail); if ($status->is_spam ()) { # do something to suspect mail # $status->rewrite_mail (); } else { # do something to normal mail } hth, -- Bob ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk