procmail
[Top] [All Lists]

Re: First N lines of Body

1996-07-03 21:06:33
Jim Osborn asked,

| I don't see an example that helps answer the question:
| 
| How do I search the first N lines of the mail body for a regexp?

If N is fixed and not too great, you could try this (it's ugly, I know):

 :0B
 * ^^.*(^.*)?(^.*)?(^.*)?(^.*)?regexp

where "(^.*)?" appears N-1 times.

<Prev in Thread] Current Thread [Next in Thread>