> -----Original Message----- > From: Doug Monroe [mailto:[EMAIL PROTECTED]] > > if I'm not mistaken, v1.12 already takes care of those cases: > > # Grab extension for wildcard matches > if ($file=~/(^.*)(\.[^\.]+)$/) { > $extension=tolower($2); > } else { > $extension=""; > } > > the regexp is a (greedy) match on everything followed by a "." followed by > whatever is NOT a "." to end > so foo.txt.vbs would end up with .vbs > foo.exe.pif would end up with .pif > Ahh, but part of the trick here is the desire to block some things that are just double attachments, and not single.
For example - allow sending foo.exe, but deny foo.txt.exe. While blocking all .vbs attachments might be a good idea, I'm not sure we want to block all .exe attachments... The problem is compounded by the fact that we host many domains and want to maximize virus blocking while minimizing false positives... Josh ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general