Hi;

David Thorburn-Gundlach wrote:
> % > How would I make a case-sensitive search for an all lower-case string?
> % > That is, I want to find funny and funnies but *not* Funny...
> % This seems to be dependend on the mutt version because of the change
> % from the buggy GNU rx libs to regex. 
>
> Let's pretend that it's a patched 0.95.4i that looks like the
> attachment below :-)
> [...]
> -USE_GNU_REGEX

Just tested it with mutt 0.95i (with rx) and mutt 0.95.4i (with regex)
regarding the subject line. Both use a rule, which worked in most of
the 19.3x GNU Emacses: If the regexp conatins no upper case letter,
it's treated as case-insensitive, but if it contains at least one
upper case letter it's treated as case-sensitive. This rule is quite
useful in most times, but surely not always, e.g. in your case it is
not.

(BTW: After testing this, I've done a little RTFM and found exactly
this rule in section 4.1 of the mutt manual: "The search is case
sensitive if the pattern contains at least one upper case letter, and
case insensitive otherwise." :-)

I suggest therefore the following: Use "X?funny" as regexp.  There is
one upper case letter in and it matches all messages containing
"funny" and no others... It worked fine with my 2 versions of mutt.

                Regards, Axel
-- 
Axel Beckert - [EMAIL PROTECTED] - http://w5.cs.uni-sb.de/~abe/
Dept. of Computer Science, University of Saarland (Germany)
Artificial Intelligence Laboratory (AI Lab), Prof. Dr. W. Wahlster;
WWW-Administrator IBFI Schloss Dagstuhl; Students Representative

Reply via email to