On Thu, Jun 29, 2000 at 11:39:27AM -0400, David T-G wrote:
> 
> ...and then Jose Romildo Malaquias said...
> % 
> % I want to remove a prefix from the messages coming
> ...
> % 
> % The subject header line comes with one of the prefixes
> % "(linux-br) ", "Re: (linux-br) ", "Re: Re: (linux-br) ",
> % and so on (without the quotes).
> 
> This is really more of a procmail question, but we've been known to take
> stabs at such here on the mutt-users mailing list.
> 
> If you can comfortably accept that all Subject: lines look like
> 
>   Subject: .*(linux-br) ...
> 
> then just turn your recipe into a clone/copy recipe and pipe the message
> through
> 
>   sed -s "s/^Subject: .*(linux-br) /Subject: /"
        ^^
> 
> and then proceed as normal.

As am not an experienced procmail user, would you please just
look at my new recipes and see if their are correct?

        :0 fwh
        * ^[EMAIL PROTECTED]
        * ^Subject: (Re: )*\(linux-br\)
        | sed -e "s/^Subject: \(Re: \)*(linux-br) /Subject: /"

        DUMMY=`test -d linux-br || mkdir linux-br`
        :0:
        * ^[EMAIL PROTECTED]
        linux-br/`date +%Y-%m`

Thanks.

Romildo
-- 
Prof. José Romildo Malaquias <[EMAIL PROTECTED]>
Departamento de Computação
Universidade Federal de Ouro Preto
Brasil

Reply via email to