procmail
[Top] [All Lists]

Re: Procmail regexp's not case-sensitive?

1997-06-11 09:14:00
On Wed, 11 Jun 1997 14:48:26 +0200,
Vincent Lefevre <Vincent(_dot_)Lefevre(_at_)ens-lyon(_dot_)fr> wrote:
On Wed, Jun 11, 1997 at 09:38:03AM +0300, era eriksson wrote:
On Wed, 11 Jun 1997 00:55:27 +0000 (GMT), 
cicho(_at_)free(_dot_)polbox(_dot_)pl wrote:
which seems to indicate, to my confused mind, that procmail
evaluates regular expressions with no regard to letter case! But
this can't be, can it? Or is
Yes, it can. RTFM. Use the D flag to change that. 
... but this won't work without doing something more complex! The
matching of word "Subject" mustn't be case sensitive. It would be
great if character class matching were always case sensitive.

Matter of taste. Too many existing recipes likely rely on this
behavior to make it worth changing. And what's wrong with asking for
case sensitivity where you need it? 

    :0
    * ^Subject:\/.*
    {
        :0D
        * MATCH ?? Uppercase and lowercase
        ...
    }

Anyway, it's a feature, not a bug :-)

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>