nnmail-prepare-incoming-header-hook is a variable defined in `nnmail.el'.
Its value is
nil
This variable may be risky if used as a file-local variable.
Documentation:
Hook called narrowed to the headers of each message.
This can be used to remove excessive spaces (and stuff like
that) from the headers before splitting and saving the messages.
You can customize this variable.