I'm struggling to understand the documentation relating to the banned_rulenames
field in SQL tables.

The best I've been able to get to is this, and I wonder if someone can let me
know if I'm heading in the right direction before I spend too much time on
this.

I need to set up a pile of different REs, each in a reference with an arbitary
name:

eg
$banned_re_1 = [qr'\.[^./]*\.(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)\.?$'i => 1];
$banned_re_2 = [qr'^\.(exe-ms)$]' => 1];

Then I need to set up a hash which maps names to these:
eg

%banned_rules = {'double_extensions' => $banned_re_1,
  'ms_executables' => $banned_re_2 };

And then use these names in a comma separated list in the SQL table field
banned_rulenames. Am I anywhere near?

-- 
Chris Hastie


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to