[Mimedefang] Playing with headers

David F. Skoll dfs at roaringpenguin.com
Mon May 8 16:42:03 EDT 2006


Matthew.van.Eerde at hbinc.com wrote:

> action_change_header("Cc" ...) will work if there's already a single
> "Cc" header.

> If there are no "Cc" headers, it will silently do nothing.

Not true; it will add one in that case.

> If there are multiple "Cc" headers, it will change one of them and
> leave the others.

Correct.

> action_delete_all_headers("Cc");
> action_insert_header("Cc", ...) # or action_add_header("Cc", ...)

Certainly, that's the safest bet.

Regards,

David.



More information about the MIMEDefang mailing list