procmail
[Top] [All Lists]

Re: Detect word

1998-07-27 06:44:41
        Author: "F(_at_)N" <fan(_at_)galeno(_dot_)unicies(_dot_)cesga(_dot_)es>
        Date:   Mon, 27 Jul 1998 13:38:56 +0200
        ID:     <35BC66D0(_dot_)79C9(_at_)unicies(_dot_)cesga(_dot_)es>

I wish to find a word in the subject field, but not at the beginning of
the phrase. It can be in any position. I use the normal syntaxis as:
i.e. find word -> damocles

Do you mean not at the beginning of the Subject: or "not _just_ at the 
beginning?

This will find it anywhere

* ^Subject:.*damocles

This will exclude when it as the beginning:

*  ^Subject:.*damocles
* !^Subject:[   ]damocles

That is a space+tab in the [ ]

TjL