4 messages in net.sourceforge.lists.courier-maildrop[maildropl] pattern match not working...
FromSent OnAttachments
J. Lewis MuirMay 2, 2002 5:59 pm 
Mark WeinemMay 2, 2002 7:55 pm 
J. Lewis MuirMay 2, 2002 9:23 pm 
Mark WeinemMay 3, 2002 7:52 am 
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] pattern match not working as expected using maildrop-1.3.8Actions...
From:J. Lewis Muir (mu@pobox.com)
Date:May 2, 2002 5:59:06 pm
List:net.sourceforge.lists.courier-maildrop

I'm using maildrop-1.3.8 on Linux 2.4.8 on x86 hardware.

I have a test message file named 'test-msg.txt' which contains the following text:

--- Date: Thu, 2 May 2002 18:45:38 -0500 From: dont@under.stand To: ge@an.swer Subject: a

This message should be considered spam. What's wrong?

---

I have a filtering instructions file named 'spam-filter' which contains the following text:

--- if (/^Subject: [^a]+$/) echo "ok" else echo "spam"

exit

---

I then invoke maildrop in manual mode using the following command:

--- maildrop spam-filter < test-msg.txt

---

What I don't understand is that it prints "ok", but it _should_ print "spam". The subject line contains the letter 'a'. The pattern match says to match a header line that starts with 'Subject: ' and has one or more characters to the end of the line that are not the letters 'a' or 'A' (since according to the docs "...the patterns match either uppercase or lowercase text").

Any ideas?

Thanks.