who match first Filename Rules or Filetype Rules ?

Sylvain Viart sylvain at opensource-expert.com
Fri Mar 20 14:51:10 GMT 2015


On 19/03/2015 16:20, Sylvain Viart wrote:
> I would like to know which rules will match first?
>
> Where is it handled in the code?

If I'm right it is handled by:

mailscanner/bin/MailScanner/SweepOther.pm
sub ScanBatch {

And /Filename Rules/ seems to be applied *before* /Filetype Rules/:

https://github.com/MailScanner/v4/blob/master/mailscanner/bin/MailScanner/SweepOther.pm#L154

The following at the end which seems to handle the Filetype Rules

https://github.com/MailScanner/v4/blob/master/mailscanner/bin/MailScanner/SweepOther.pm#L427

counter += CheckFileContentTypes($batch)

Someone confirms?

Regards.
Sylvain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20150320/b909b27a/attachment.html 


More information about the MailScanner mailing list