|
From: Dejan K. <dej...@nb...> - 2003-03-27 16:22:55
|
Bruce, I am working on implementation of regular expression filtering in scanners. Since I have no better idea there will be config options in each scanners where filtering have sence. So in directory and ftp scanners messages could be filtered by filename, and in case of mailbox scanner subject and body (and maybe fromAddress) could be filtered. I will probably drop code for include and exclude filters from dir scanners since they could be used only for extensions not filename. Is it OK to delete it? Also, I think one filter per field is enough since you can express anything you want in regular expressions (no need for some kind of include and exclude filters for every field...). By the way, I will implement methods which deals with regular expression in ScannerWorker class. Currently I use JDK 1.4 java.util.regex.* package but we can later change this and use something that would work on older JDK versions (Jakarta RegEx or ORO). It will be easy since there are only two methods.. I have also added 'format' config option in SmtpWriter, which can be used to specify if message is in html or plain text. Default is plain of course... Dejan |