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:
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]
* Jose Romildo Malaquias wrote on Thu, 29 Jun 2000:
[procmail question]
Please use the procmail list [EMAIL PROTECTED]
-Dirk
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
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
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: /"
%
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
% 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
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
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
10 matches
Mail list logo