On 3/11/11 11:54 AM, Mark Martinec wrote:
if ($msginfo->msg_size<  1024*1024) {
     Amavis::do_quarantine($conn,$msginfo, undef,
       ['archive-quarantine'], 'sql:');
   }
back on this. I do want to quarantine the whole email if it is 'spam/virus/attachment'. its only in certain circumstances that I want to limit this to 1M.
and, only on some systems.

so, start with:
 my($content) = $msginfo->is_in_contents_category(CC_CLEAN);
 if ($content && $msginfo->msg_size < 1024*1024 ) {

also, looks like (in 2.6.4) do_quarantine might have more fields I need to populate.

 my($conn,$msginfo,$hdr_edits_inherited,$recips_ref,
     $quarantine_method,@snmp_id) = @_;









--
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
ISN: 1259*1300
>*| *SECNAP Network Security Corporation

   * Best Intrusion Prevention Product, Networks Product Guide
   * Certified SNORT Integrator
   * Hot Company Award, World Executive Alliance
   * Best in Email Security, 2010 Network Products Guide
   * King of Spam Filters, SC Magazine


______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.secnap.com/products/spammertrap/
______________________________________________________________________  

Reply via email to