rmail-copy-headers

rmail-copy-headers is a compiled Lisp function in `rmail.el'.

(rmail-copy-headers BEG END &optional IGNORED-HEADERS)

Copy displayed header fields to the message viewer buffer.
BEG and END marks the start and end positions of the message in
the mbox buffer. If the optional argument IGNORED-HEADERS is
non-nil, ignore all header fields whose names match that regexp.
Otherwise, if `rmail-displayed-headers' is non-nil, copy only
those header fields whose names match that regexp. Otherwise,
copy all header fields whose names do not match
`rmail-ignored-headers' (unless they also match
`rmail-nonignored-headers'). Moves point in the message viewer
buffer to the end of the headers.