On Thu, Jun 07, 2001 at 04:35:18PM +0100, Lars Hecking wrote:
> Doug Kearns writes:
> > Hello all,
> > 
> > Is there some way to to set the index format so that it strips certain
> > characters from the subject( %s ) ?
> > 
> > eg. I'd like to strip the leading [...] from the subject
> > "[ruby-talk:15734] java based interpreter and regexes"
> 
>  There is no way to do it in mutt, as the format strings available for
>  index_format don't allow access to substrings. But you can do this in
>  procmail:
> 
> :0 fhw
> * ^Subject:[  ]*\[[^]]*\][    ]\/.*
> | formail -I "Subject: $MATCH"
> 
>  The "empty" bracket pairs contain a space and a tab each.
> 
Thanks.
I didn't want to actually strip it - just didn't want to have to look at
it in the index.
I find subject strings of this type to be too 'noisy'.

Regards,
Doug

Reply via email to