[EMAIL PROTECTED] wrote:

> I'm tempted to do something like
>       action_delete_all_headers("Subject");
>       action_add_header("Subject", "[SPAM] $Subject");

> 1) Will this work?

Yes.

> Or will action_delete_all_headers("Subject") repopulate the $Subject
> variable?

No; you're OK on that count.

> 2) Is there a way to detect how many of a given header there are,
> short of slurping ./HEADERS?

Not really.

> 3) Is there a way to make an action_change_all_headers()?

Sure:

First, you count how many there are.  Then:

for $i (1 .. $num_headers) {
    action_change_header("HeaderName", $header_value, $i);
}

Regards,

David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to