[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mailfilter bug?



On (11/11/03 13:21), Roberto Sanchez wrote:
> csj wrote:
> >Before I file a bug report, I'd like to confirm the behavior I
> >describe below.
> >
> >I have in my my ~/.mailfilterrc a DENY rule for "^Subject:.*Test"
> >and ALLOW rules for "marssociety" and "marssocietynewsletter":
> >
> >$ grep -Ei 'test|marssociety' ~/.mailfilterrc
> >DENY=^Subject:.*Test
> >ALLOW=^To:.*marssocietynewsletter
> >ALLOW=^Reply-To:.*marssociety
> >ALLOW=^Subject:.*marssociety
> >
> >I found out this morning that an email with the word "Contest" in
> >the Subject was deleted by mailfilter (according to my log).  The
> >email also had "[marssocietynewsletter]" in the Subject and I
> >suspect, given the format of previous communications, also
> >"marssociety" in the Reply-To.  The email therefore should have
> >passed two of my ALLOW rules.
> >
> >Shouldn't the ALLOW rule (allow all emails with "marssociety" in
> >the Subject) take precedence over the DENY rule (delete all
> >emails containing with the word or word part "test")?
> >
> >
> 
> I don't know much about mailfilter, but it seems as though the
> rules are being applied in the order encountered.  You may need
> to move yoru DENY rule to a position after the ALLOW rules.
> Just a thought.
The mailfilterrc example shows the DENY arguments before the ALLOW and
the inference is that ALLOW is an exception to any DENY rules.
Certainly, if you DENY by size, ALLOW from a specified user will let
large emails through from that sender.

Not sure this helps but it my understanding of how mailfilter works.

Having said that, I got other unexpected results although I suspect that
may have been due to my ignorance and inexperience ;)

Regards

Clive


-- 
http://www.clivemenzies.co.uk
strategies for business



Reply to: