----- Original Message ----- From: "Jay Swackhamer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 15, 2003 1:07 PM Subject: Re: [Qmail-scanner-general]blocking certain words
> Doug Monroe <[EMAIL PROTECTED]> wrote: > > Secondly, the test is a simple pattern match: > > if ($headers{$type} =~ /^$var$/) { > > no way to make your -rule- be case insensitive, but you're free to > > modify that line in qmail-scanner-queue.pl above as you see fit, e.g.: > > if ($headers{$type} =~ /^$var$/i) { > > > > I've often wondered why the "i" flag was not set by default myself. > > It's probably better to specify case-insensitive in the regular expression > rather than changing that line. Sometimes it might be necessary to catch > something case-sensitive. > > Use an expression like this: > > (?i).* cum .* > > (?i) sets the following to be case-insensitive Thanks for the help but I still can't get it to work. I removed the previously added "i" from qmail-scanner-queue.pl and instead changed my line in /var/spool/qmailscan/quarantine-attachments.txt I then ran /var/qmail/bin/qmail-scanner-queue.pl -g It's still case sensitive. Here's an exact cut and paste of what I have in quaratine-attachments.txt (?i).* cum .* Virus-Subject: cum I have qmail-scanner version 1.20rc3 if that helps. Thanks Malcolm ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general