Jim --

...and then Jim B said...
% Hi, I just started using Mutt last night, coming from the Pine world.  I

Welcome to the real world :-)


...
% 
% However, the IMC machine writes a new tracking number into the Subject

Ouch!

...
% 
% For example, one message may look like this:
% 
% Subject: RE: [GeneralService] Word1 Word2 [IMS2000012500000368242002]
% 
% I will reply to it, then the customer will reply again, and the Subject
% will change to this:
% 
% Subject: RE: [GeneralService] Word1 Word2 [IMS2000012500000368262914]
% 
% The only thing that changes is the tracking number.
% 
% I've tried the following:
% 
% set reply_regexp = "^(re|aw):[ \t]*[ \t]\[A-Z*0-9*]"
% 
% but that apparently doesn't work.

I suppose it's too much to ask your server software maintainer to quit
changing the subject line, eh? :-)

Let's see, here...  Your regexp says to match a "re" or "aw" at the
front of the line, a colon, any spaces or tabs, a single space or tab,
an opening bracket, any cap letters, any numbers, and a closing bracket.

Looks like you don't have a match for your actual topic or words parts.

Could you be looking for something more like

  "^(re|aw):[ \t]\[A-Za-z*][ \t]([A-Za-z]*[ \t]*)*\[A-Z*0-9*]"

instead, which (we hope) matches a "re" or "aw" at the front, a colon, 
a space or tab, an opening bracket, any number of letters, a closing
bracket, a space or tab, any number of (any number of letters and any
number of spaces or tabs), an opening bracket, any number of cap letters,
any number of digits, and a closing bracket (whew!)?  That, at least,
should better match your described subject line...

On the other hand, if you simply wanted to match on anything between your
"re|aw" and the actual tracking number, you probably wanted ".*" instead
of "*" between the two white classes -- but I don't think that that will
work for your threading.

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?


% 
% Can anyone supply a regexp that should handle this?  It would help SO
% much.
% 
% Thanks!!


:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to