who match first Filename Rules or Filetype Rules ?

Glenn Steen glenn.steen at gmail.com
Wed Mar 25 10:10:35 GMT 2015


Sure, I'll bite... IIRC this is exactly true. Unlike with AV and spam
scanning, both tests will occur, so the individual order is not really
that relevant.... Unless you have a problem in one (or the other).

Cheers!
-- 
-- Glenn

On 20 March 2015 at 15:51, Sylvain Viart <sylvain at opensource-expert.com> wrote:
> 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.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>



-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list