procmail
[Top] [All Lists]

Eliminating Linefeed embedded in a $MATCH result

1999-04-29 04:05:07
Folks,

        I seem to be getting an linefeed stuck from time to time in
$MATCH.

        What is the best method to eliminate embedded linefeeds?  I
already have $NL.

        Otherwise, how to limit a $MATCH to just a single line? I
currently have conditions like:

        * B ?? ()\/\<Foobars?\>

If "Foobar" is at the end of the line, $MATCH contains a linefeed.  Do
I have to add ".*$" at the end, to limit it to just the considered
line?  On the other hand, this may add too much to the $MATCH
variable.

        Thanks in advance,

                --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                                                If all 
else fails, try:
newsmaster(_at_)irit(_dot_)fr, postmaster(_at_)irit(_dot_)fr             
sobek(_at_)diva(_dot_)eecs(_dot_)berkeley(_dot_)edu
Ph:(+33)[0]561558618  FAX:(+33)[0]561556258  http://www.irit.fr/~Ralph.Sobek/
===============================================================================
Urgent!! Greenhouse Effect: http://www.irit.fr/~Ralph.Sobek/greenhouse.html