procmail
[Top] [All Lists]

Re: non-INCLUDERC-ing string-splitter

2005-01-11 23:42:20
On Wed, 12 Jan 2005 03:31:20 +0100, Ruud H.G. van Tol
<rvtol(_at_)isolution(_dot_)nl> wrote:
Bart: please try it. (it = v1.01)

I had a look at split.102.inc ... interesting approach, though once it
gets up to needing $reA or so I'd begin to worry about
PROCMAIL_OVERFLOW, especially with the newline-matching variant of
$re0.

I'd also say that, if there were any danger of someone beginning to
maintain procmail again, the use of a leading $ in a variable's value
to re-expand the rest of the value is exactly the sort of thing that
I'd expect to be treated as a bug and therefore to stop working at
some point.  Consider:

LOOP='$ $LOOP'
:0
* $ $LOOP
{ }

I can't believe that behavior is intentional, although your
exploitation of it is quite clever.

A suggested enhancement:  split the input message if split_Str is not
set, perhaps with an option to split the header, body, or the whole
thing.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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