On Fri, May 03, 2002 at 02:40:43PM +0800, Edward Dekkers wrote:

> Hey guys - those familiar with mailfilter could you please check this out
> and see whether I've blown something in the .mailfilterrc file or this is a
> mailfilter bug..
> 
> I have a rule to delete anything from i.net (Spammer addresses).
> 
> but it seems to delete anything at iinet.net.au as well using that rule. Any
> idea what's going on?
> 
> Thanks - see below for transcript.
> 
> 
> Queued messages:      1
> There is 1 message in your incoming mailbox.
> mailfilter: 0.2.4 querying mail.iinet.net.au on Fri May  3 11:45:00 2002
> mailfilter: Examining 3 message(s).
> mailfilter: Deleted "Annette Beale" <[EMAIL PROTECTED]>: Re: Wheres my
> brain, Fri, 3 May 2002 11:34:51 +0800. [Applied filter: '^From:.*@i.net']
> 2 messages for treplid at mail.iinet.net.au (3309 octets).
> reading message 1 of 2 (1058 octets) . flushed
> reading message 2 of 2 (2251 octets) .. flushed
> fetchmail: No mail for flaropl at mail.iinet.net.au
> Queued messages:      1
> There are 3 messages in your incoming mailbox.

You regular expression is wrong.

^From:.*@i.net is interpreted as follows:

Anything that begins with "^From:" followed by any number of characters,
followed by 'i' followed by any single character, followed by the string
'net'. So of course "[EMAIL PROTECTED]" will match, since "iinet"
is 'i' followed by a single character followed by "net".

You need to make your regular expression more precise, like this:

^From:.*@i\.net$

That backslash escapes the dot, and the '$' makes sure that only addresses
ending in i.net match.

-- 
Anand Buddhdev
Personal site: http://anand.org



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to