![]()
From: Martin Schulze (joey@finlandia.Infodrom.North.DE)
Date: Tue Feb 01 2000 - 15:11:27 CST
Eric Luhrs wrote:
>
> Hello,
> I am trying to process a list which has a digest number prepended to the
> subject line. The problem is that the digest number increases by one each
> time a digest is sent--so I can't force stripsubject to remove "STRING
> 1.001" because the next message will be prefaced with "STRING 1.002" so
> forth, and so on. Stripsubject obviously can't accept a value like
> "STRING*" but will it take a range, such as "STRING [1-1000]"? Is there
> another way to deal with this problem? Thanks in advance.
Use procmail + formail
:0 fhw
| sed 's/^Subject: [1-9]\.[0-9]*/Subject: /'
:0
| hypermail ...
or
SUBJECT=`formail -X Subject`
NEW=`echo "$SUBJECT"| sed 's/^Subject: [1-9]\.[0-9]*/Subject: /'`
:0 fhw
| formail -i "$NEW"
:0
| hypermail...
or something like that.
Regards,
Joey
-- A mathematician is a machine for converting coffee into theorems.
![]()