Re: Removing a prefix from the subject of messages

2000-06-30 Thread Lars Hecking
Jose Romildo Malaquias writes: Hello. I want to remove a prefix from the messages coming from a mailing list I am subscribed before saving the messages in its folder. Currently my procmail recipes for saving the message is DUMMY=`test -d linux-br || mkdir linux-br` :0:

Removing a prefix from the subject of messages

2000-06-29 Thread Jose Romildo Malaquias
Hello. I want to remove a prefix from the messages coming from a mailing list I am subscribed before saving the messages in its folder. Currently my procmail recipes for saving the message is DUMMY=`test -d linux-br || mkdir linux-br` :0: * ^[EMAIL PROTECTED]

Re: Removing a prefix from the subject of messages

2000-06-29 Thread Dirk Pirschel
* Jose Romildo Malaquias wrote on Thu, 29 Jun 2000: [procmail question] Please use the procmail list [EMAIL PROTECTED] -Dirk

Re: Removing a prefix from the subject of messages

2000-06-29 Thread Lars Hecking
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. D'oh. That's a job for

Re: Removing a prefix from the subject of messages

2000-06-29 Thread Jose Romildo Malaquias
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

Re: Removing a prefix from the subject of messages

2000-06-29 Thread David T-G
Lars -- ...and then Lars Hecking said... % % 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: /" %

Re: Removing a prefix from the subject of messages

2000-06-29 Thread David T-G
Romildo -- ...and then Jose Romildo Malaquias said... % On Thu, Jun 29, 2000 at 11:39:27AM -0400, David T-G wrote: % %sed -s "s/^Subject: .*(linux-br) /Subject: /" % ^^ You're right, of course; thanks for catching my typo. % % As am not an experienced procmail user, would you

Re: Removing a prefix from the subject of messages

2000-06-29 Thread Lars Hecking
% D'oh. That's a job for procmail's MATCH and formail. No need for an % external program. Well, I thought about that, and formail is a called program at the same level as sed, but I didn't know how to strip part of the Subject: line with formail :-) As always, I realised that

Re: Removing a prefix from the subject of messages

2000-06-29 Thread David Champion
On 2000.06.29, in [EMAIL PROTECTED], "Lars Hecking" [EMAIL PROTECTED] wrote: D'oh. That's a job for procmail's MATCH and formail. No need for an external program. No, but it's easier with an external program, because procmail's $MATCHing is so weak. Here's my old procmail matcher

Re: Removing a prefix from the subject of messages

2000-06-29 Thread David T-G
Romildo -- ...and then Jose Romildo Malaquias said... % Hello. Hi! % % 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