2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: Syntax Question
FromSent OnAttachments
Mike UsmarJan 12, 2006 2:01 pm 
Milan ObuchJan 12, 2006 2:06 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: Syntax QuestionActions...
From:Milan Obuch (mail@dino.sk)
Date:Jan 12, 2006 2:06:40 pm
List:net.sourceforge.lists.courier-maildrop

On Thursday 12 January 2006 23:01, Mike Usmar wrote:

Hi,

I've been using maildrop for a while now, but came across a problem, where by I want to filter out some email with a particular subject which has a '#' (hash) in it. However its not working, as I believe maildrop treats that # has a comment, and ignores the rest after it.

Basically I'm getting heaps of spam on my server, thats like this: Subject: [#aqqguqnex] Foo bar...

(eg [#(letters)] more letters)

Most probably you need escape brackets as \[ and \], at least in maildrop with pcre (version 2.0). Regards, Milan

So, I tried this in my .mailfilter file:

if (/^Subject:.*[#.*] /) { log "-----------delete [#..] spam------------" to /dev/null }

But doesn't seem to work. Can anyone help me?

Thanks

Mike Usmar