Re: stripsubject

---------

From: Bjarni R. Einarsson (bre@netverjar.is)
Date: Tue Feb 01 2000 - 16:53:10 CST


On 2000-02-01, 15:56:01 (-0500), 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.

Since that's the only little snippet of code I wrote in hypermail (my claim
to hypermail fame, eh) I think I can safely answer this one - there are no
ranges or anything supported at the moment.

My solution to problems like these is always to filter the mail through perl
(or sed), before feeding it to hypermail. :-)

cat message \
        | perl -npe 's/^Subject:\s+STRING\s+\d+\.\d+/Subject:/;' \
        | hypermail ...

-- 
Bjarni R. Einarsson                           PGP: 02764305, B7A3AB89
 bre@netverjar.is               -><-            http://bre.klaki.net/
Netverjar gegn ruslpósti: http://www.netverjar.is/baratta/ruslpostur/

---------

This archive was generated by hypermail 2.1.5.