ietf-mta-filters
[Top] [All Lists]

Re: Three new drafts and a question

2003-04-28 17:49:19
On Tuesday 29 April 2003 01:43, ned(_dot_)freed(_at_)mrochek(_dot_)com wrote:
<snip>
Please explain why you cannot use deleteheader/addheader for this.
<snip>

OK, if the variables extension is present, you can of course emulate 
this with a :regex/:matches test and a deleteheader/addheader pair.

If the variables extension isn't available, the replaceheader itself is 
pretty limited, too, since
  replaceheader :newvalue "" :regex "Subject" "^\[ml-name\] *";
doesn't work (should it? Probably, since without it, how does one write 
the equivalent of perl's s///g?).

The arguments that remains, then, is that replaceheader is easier to 
write for a script author and that it can't be that complex if it's 
functionality is already present in addheader/deleteheader/variables... 
In addition, replaceheader :index <num> has no equivalent due to lack 
of indexing support in the header test.

Marc

-- 
The first casualty of war is the truth.

Attachment: pgpXxrzMkoA6S.pgp
Description: signature

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