Jim B <[EMAIL PROTECTED]> wrote on Wed, 26 Jan 2000:
> I've been looking at how Mutt uses these regexps, and it seems I may need
> something more like:
>
> <ignore this> <match this> <ignore this>
>
> From what I can tell, the expression actually is more of the "ignore" part
> rather than the "match" part... like a "negative" match.  Am I right on
> this?

I think you are.

And that unfortunately means that as far as I can see, you can't have 
the kind of reply_regexp that you'd like, because there's no way to 
specify "skip these chars" -- they'll be included no matter what you do,
or then the part at the end won't.

It would be possible to solve this case with just a reply_regexp if the 
tracking number got added somewhere to the beginning of the subject, not 
to the end.  As it is, you either need to convince the tracking software
to start adding References headers, or to use a different method for 
mungling the subjects, or to figure out some way to fix the subjects 
and/or Reference headers (procmail? custom perl script to maintain a 
database of seen subject lines which adds a References header?).


David T-G <[EMAIL PROTECTED]> wrote on Tue, 25 Jan 2000:
> Mutt regexp gurus: Is specifying the A-Z necessary if we don't care about
> the case?  If we do and have to use A-Z, will the re|aw exp match upper
> case versions?

Me either, but I think it follows the usual regexp rules, since the
re|aw part works (Most my replies begin with Re:, not re:, yet that
works for me) -- no reason why an [a-z] match would work differently.

(I mean, I haven't looked at the code, but the easiest way for a case
insensitive match is to lowercase the whole string first before
matching, instead of try to start mungling the regexp parser somehow,
so I'd be willing to bet that's how it's done).


Regards,
Mikko
-- 
// Mikko H�nninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Clouds are high flying fogs.

Reply via email to