On Tue, Nov 11, 2003 at 10:26:31AM +0800, 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")?

This is correct.  An ALLOW rule takes absolute precedence over a DENY
rule.  This is the case even if you had both types of rules with the
same regular expression.  I've tested this with mailfilter 0.5.2 and the
mail was not deleted.

Your regular expressions look ok and the spelling is consistent.  So is
it a bug?

The only time I had something like this happen to me it transpired that
what was displayed on the screen was not what was in the header because
it had been base 64 encoded.  If you have previous emails examine them
with a pager or text editor to see whether they are what you expect.

Otherwise, contact the mailfilter mailing list.  The author and others
who are familiar with the inner workings of mailfilter are very
responsive.

Brian.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to