Sebastian Nielsen: > Yes, but my script does not know what is added/changed/replaced.
You are copying the header and body to another program, therefore you know how many headers there were, therefore you can send the corresponding "delete header" commands before inserting the new ones. To delete header "foo" with index N, invoke the "change header" action with an empty header value. Wietse