N.J. Mann <njm(_at_)njm(_dot_)f2s(_dot_)com> wrote:
I am trying to use scoring
You don't need to count, you only need to know if the filename occurs.
:0 f
* 1^1 ^Subject:.*\<ports/x11/xterm\>
| formail -I "X-Status: F"
As well as matching on ports/x11/xterm
it also matches on ports/x11/xterm-whatever
which I do not want.
So far, this would do:
* ^Subject:.*\<ports/x11/xterm\/\>
* ! MATCH ?? ^^-
The Subject line may contain one pathname/filename combination or
many. Thus the ability to detect the end of a word by encountering
either whitespace or newline is what I am looking for.
OK, that tells me why you were trying to count. Here's one that won't
get spoofed in the first place. If "whitespace" simply means a space:
* ^Subject:.*\<ports/x11/xterm( |$)
Or if there might be a tab character:
* $ ^Subject:.*\<ports/x11/xterm($WS|$)
Assuming:
SP = " "
TAB = " "
WS = "[$SP$TAB]"
HTH,
-mdp
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail