Re: mailinglist-prefix in index_format

2002-01-23 Thread Prahlad Vaidyanathan

Hi,

On Fri, 18 Jan 2002 Hanspeter Roth spewed into the ether:
 
 Some mailinglists prefix every subject with the name of the list.
 Is it possible to suppress this prefix in the index_format? How?
 Or is this a case for procmail?

This works for me :

http://www.symonds.net/~prahladv/files/subject_tag_remove.pl

I run this through procmail like so :

# Removing ML subject tags
:0 hfw
* ^Subject:.*\[.*\].*
| perl ~/.mutt/subject_tag_remove.pl

pv.
-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]

I think, therefore I am... I think.



msg23631/pgp0.pgp
Description: PGP signature


mailinglist-prefix in index_format

2002-01-19 Thread Hanspeter Roth


Some mailinglists prefix every subject with the name of the list.
Is it possible to suppress this prefix in the index_format? How?
Or is this a case for procmail?

-Hanspeter



Re: mailinglist-prefix in index_format

2002-01-19 Thread Michael Wagner

On Freitag, 18. Jan. 2002 at 19:08:45, Hanspeter Roth wrote:
 
 Some mailinglists prefix every subject with the name of the list.
 Is it possible to suppress this prefix in the index_format? How?
 Or is this a case for procmail?
 
Hello Hanspeter,

I have this procmail recipe for the german Debian-user ML. The name
is [EMAIL PROTECTED] and I put this in my .procmailrc:

:0
* ^X-Mailing-List: .*debian-user-de.*
{
SUBJECT=`formail -xSubject: \
| sed -e 's/\(\[\|=5B\)Debian\(\]\|=5D\)\(:\|=3A\)\?[_]\?//g' \
  -e 's/Re: \(Re: \)*/Re: /g'`
:0 fw
| formail -ISubject:$SUBJECT
:0
debian-user-de
}
  
It filters the Debian from the subject and put the mail in the folder
debian-user-de.

Hth Michael

-- 
The revolution will not be televised.



msg23337/pgp0.pgp
Description: PGP signature


Re: mailinglist-prefix in index_format

2002-01-19 Thread Michael Elkins

Hanspeter Roth wrote:
 Some mailinglists prefix every subject with the name of the list.
 Is it possible to suppress this prefix in the index_format? How?
 Or is this a case for procmail?

It's more efficient to do it with procmail since you only have to do the
operation once at delivery time.



Re: mailinglist-prefix in index_format

2002-01-19 Thread Thomas Hurst

* Michael Elkins ([EMAIL PROTECTED]) wrote:

 Hanspeter Roth wrote:
  Some mailinglists prefix every subject with the name of the list.
  Is it possible to suppress this prefix in the index_format? How?  Or
  is this a case for procmail?

 It's more efficient to do it with procmail since you only have to do
 the operation once at delivery time.

Some of us are alergic to subject mangling like this (and there's no
knowing what the mailing list will do if we strip it entirely); and
we're already applying a regexp to the subject to work out Re:'s; I
wouldn't mind a subject_transform_regexp provided it didn't slow things
down too much.

If people can put up with the overhead of large maildir mailboxes I'm
sure they can put up with an extra few fractions of a second for
something like this :)

-- 
Thomas 'Freaky' Hurst  -  [EMAIL PROTECTED]  -  http://www.aagh.net/
-
Anthony's Law of Force:
Don't force it; get a larger hammer.



Re: mailinglist-prefix in index_format

2002-01-19 Thread Michael Elkins

Thomas Hurst wrote:
 Some of us are alergic to subject mangling like this (and there's no
 knowing what the mailing list will do if we strip it entirely); and

Can you give an example of some mail list software which is dependent upon
the format of the subject header field?  Given the wide variety of
interesting things MUAs do with this field, I'd be very surprised if there
existed any such software.

 If people can put up with the overhead of large maildir mailboxes I'm
 sure they can put up with an extra few fractions of a second for
 something like this :)

Hopefully it will be more efficient in 1.5 if my header cache patch is
accepted.



Re: mailinglist-prefix in index_format

2002-01-19 Thread David Champion

On 2002.01.19, in [EMAIL PROTECTED],
Thomas Hurst [EMAIL PROTECTED] wrote:
 * Michael Elkins ([EMAIL PROTECTED]) wrote:
 
  Hanspeter Roth wrote:
   Some mailinglists prefix every subject with the name of the list.
   Is it possible to suppress this prefix in the index_format? How?  Or
   is this a case for procmail?
 
  It's more efficient to do it with procmail since you only have to do
  the operation once at delivery time.
 
 Some of us are alergic to subject mangling like this (and there's no
 knowing what the mailing list will do if we strip it entirely); and

Unfortunately, there's no knowing what the list will do if you keep it,
either. Some of them misbehave then, too. So I strip it; the lists
cope.

I strip the labels on such messages as they arrive in my inbox, copying
the original Subject: to Old-Subject:, but I keep the pristine message
in the list archive's copy of the message. My procmail also copies a
short expression identifying the list to the X-Label: header of my
inbox, so that my index display shows it, and I can easily search on it,
etc., without having the awful mess in the subject line itself.

I also take out the [2] in Re[2]: prefixes.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago