Make copyMessageHeaders public