procmail
[Top] [All Lists]

Re: Detect word

1998-07-27 12:30:36
Timothy Luoma suggested to <fan(_at_)galeno(_dot_)unicies(_dot_)cesga(_dot_)es>,

| 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 [ ]

Or you can do the second job (counting the word only if it is not the first
thing in the subject) with only one condition:

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

The brackets enclose caret, space, tab.