procmail
[Top] [All Lists]

Trouble with multi-line MATCH

2000-02-16 09:50:08
Hello again, folks!

        I remember discussions about differences in multi-line MATCHes
dependant on the version of procmail, somethin about versions prior to
3.12.  On our server we have version 3.13, but locally I have 3.11pre7!

Here's the problem.  I have the following recipe:



# this match includes the preceding and succeeding lines

:0
* 9876543210^0 $ ^(From|Subject):.*\/\<(${words})s?\>.*$
* 9876543210^0 B ?? $ ()\/^.*$?.*\<(${words})s?\>.*$
{
   LINES = $MATCH
}

Under procmail 3.11pre7, this seems to recover only the current line
containing $words.  Also if, I modify the second condition to include
the *next* line, as follows:

* 9876543210^0 B ?? $ ()\/^.*$?.*\<(${words})s?\>.*$?.*

the match fails entirely.

On another note, can one add conditions that individually case-match:

* D ^Hello There

or 

* D VAR ?? ^Hello There

Thanks to all,

        --Ralph

Dr. Ralph P. Sobek                Disclaimer: The above ruminations are my own.
Ralph(_dot_)Sobek(_at_)irit(_dot_)fr                       Addresses are 
ordered by importance.
sobek(_at_)irit(_dot_)fr
Ph:(+33)[0]561558618   FAX:(+33)[0]561556258   http://www.irit.fr/~Ralph.Sobek/
===============================================================================
US State Legislatures must dump the Uniform Computer Information Transaction 
Act (UCITA)

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