Re: [AMaViS-user] Spam Tests in SQL

This is a discussion on Re: [AMaViS-user] Spam Tests in SQL within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Stuart, > I would like add to the amavisd-new SQL-storage in order to record the > spam tests ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2006
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Spam Tests in SQL

Stuart,

> I would like add to the amavisd-new SQL-storage in order to record the
> spam tests that a message hit. This would be so that I can track how
> often certain rules are hitting. Has anyone done this and would like to
> share their implementation?


Modify updating of msgs table in sub save_info_final:

# update message record with additional information
$conn_h->execute($sql_cl_r->{'upd_msg'},
$content_type, $quar_type, $q_to, $dsn_sent,
untaint($spam_level), untaint($m_id), untaint($from),
untaint($subj), $mail_id);

and the 'upd_msg' clause in %sql_clause, adding another field
to table msgs. The information you want to store is
kept in $msginfo->spam_status

Mark


_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0