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.Received on Tue 01 Feb 2000 11:56:26 PM GMT
This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:52 PM GMT GMT