procmail
[Top] [All Lists]

Re: Brain dead Re^2 killer?

1997-07-23 15:25:00

The problem is that procmail's extraction is left-stingy and right-greedy.
No matter how long a string of Re:-equivalents there are, that will take
off only one of them.  Unless someone comes up with a regexp that will match
anything *except* an equivalent to Re:, we're looking at a recursive
INCLUDERC arrangement again.

How about in whatever language suits you, write a routine that collapses
the "Re:" things.

Then if your procmail recipe detects one Re, use your non-sed routine to
alter the subject line.

Or make sure your routine doesn't change anything else, and have your mail
piped through the routine before procmail gets it.

How about the Korn shell ${VAR##*Re} trick combined with something else?

<Prev in Thread] Current Thread [Next in Thread>