On 12:47 19 May 2002, Rocco Rutte <[EMAIL PROTECTED]> wrote:
| * Robert Wagner [05/19/02 11:14:52 CEST] wrote:
| > how can I change the Subject shown in the browser? Since e.g. the mails
| > coming from certain mailing lists are put in a dedicated folder by
| > procmail, I do not need the preceeding string "[mailing list blah]" in 
[...]
| > Therefore I'd like to apply a hook such that the mutt browser removes
| > patterns like ^\[(.+)\] from the Subject line before displaying them in
| > the browser for certain folders. 
| 
| It's not a good idea to remove ^\[(.+)\].

it does seem dangerous.

| I suggest to look at
| the listname and remove all appearances of
|   [[]listname[]][[:space:]]?
| (note: no ^) since it will also repair broken subjects like:
|   [list] Re: [list] Subject
| to
|   Re: Subject

I do this in my .procimailrc:

        :0 Whf
        * ^subject:.*(\[|re)
        | cleansubj

where cleansubj is this sed script:

        http://www.zip.com.au/~cs/scripts/cleansubj

Seems to work for me. Cheers,
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

It's hard to believe that something as rational as the metric system was
invented by the French. - Henry O. Farad <[EMAIL PROTECTED]>

Reply via email to