Earl,
Thanks a lot. Your solution with SUBJECTSTRIPCODE works fine. Now that
you've mentioned it I wonder why I didn't think about trailing
withespaces. 
Thanks again.

Cheers,
Serge

On Sat, 25 Sep 1999, Earl Hood wrote:

> On September 22, 1999 at 19:00, Serge Patrick KAPTO wrote:
> 
> > [List-Name] Subject
> > [List-Name] Re: Subject
> > 
> > I've used SUBJECTSTRIPCODE as follows.
> > <SUBJECTSTRIPCODE>
> > s/^\[List-Name\]//;
> ------------------^ Need a \s*
> > </SUBJECTSTRIPCODE>
> > It removes the list name from the subject lines, but fails to resolves the
> > thread problems. The explanation may be that the messages are threaded
> > before the regexp is applied.
> 
> Try:
> 
> <SUBJECTSTRIPCODE>
> s/^\[List-Name\]\s*//;
> </SUBJECTSTRIPCODE>
> 
> The default SUBJECTREPLYRXP does not handle leading whitespace.  Since
> your SUBJECTSTRIPCODE did not strip out the space after the
> list-name, SUBJECTREPLYRXP has no affect.
> 
> 
> > I've also tried SUBJECTREPLYRXP as follows 
> > <SUBJECTREPLYRXP>
> > ^\s*\[List-Name\]\s*(sv|fwd|fw)[\[\]\d]*[:>-]+\s*
> > </SUBJECTREPLYRXP>
> 
> This one is a little harder to get the desired effect.  For one,
> you leave out the ability to match "re", and it will not match
> against non-replies.  This should work:
> 
> <SUBJECTREPLYRXP>
> ^\[List-Name\]\s*(?:(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)?
> </SUBJECTREPLYRXP>
> 
> The fixed SUBJECTSTRIPCODE is much cleaner.
> 
>       --ewh
> 

Reply via email to