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

Re: Three new drafts and a question

2003-04-29 03:09:59

Please explain why you cannot use deleteheader/addheader for this.

I don't think this is the example Marc had in mind, but anyway:

One other thing to say is complexity for guis.  If the intention is to
"replace header" and you have to do this via removeheader and addheader,
then it becomes much more difficult to "extract" from the script.  The
intention being to populate a control that has an array of desired actions,
one of which is "Prepend the following substring to the Subject line".

ie either:

if spamtest :value "ge" :comparator "i;ascii-numeric" "3" {
    replaceheader :newvalue "[SPAM] ${1}" :matches "Subject" "*";
}

or:

if spamtest :value "ge" :comparator "i;ascii-numeric" "3" {
    deleteheader :matches "Subject" "*";
    addheader "Subject" "[SPAM] ${1}";
}

Cheers

Nigel