Thanks for your ideas ,
1. If I send a mail that the From field is : te...@datatx.com then the rule
should not be applied while it is.
2. How do I see the Environment ? adding log 'env' to maildroprc
didn't work .
Thanks
Isaac
----- Original Message -----
From: "Milan Obuch" <sf...@dino.sk>
To: <cour...@lists.sourceforge.net>
Sent: Tuesday, January 03, 2006 11:59 AM
Subject: [maildropl] Re: Maildrop isn't filtering
On Tuesday 03 January 2006 09:31, Isaac Zinner wrote:
Hello list,
My problem shortly : Maildrop is working but not filtering according to
the
rules. Here is the rule :
if (/^FROM:.isaac*/ )
{
to "$MAILDIR.Trash/"
}
But ALL the mail now goes to the Trash wether it is from Isaac or not.
You could play maybe with spaces in your regexp? It is mentioned several
times on mailing lists that maildrop is picky about spaces, but my
personal
experience is it just works - no problem with rules yet.
Another question is what you would like to match - /^FROM:.isaac*/ means
FROM:
at the beginning, literally, then any character, then isaa literally, then
any c repeated any number of times. Maybe your rule should be modified a
bit.
When I am testing something, it is useful to see an environment as well -
using log `env` in maildrop recipe does the trick.
Just some ideas, maybe helpfull...
Regards,
Milan