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 -I"Subject:$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.

Attachment: msg23337/pgp00000.pgp
Description: PGP signature

Reply via email to