message-shorten-references

message-shorten-references is a compiled Lisp function in `message.el'.

(message-shorten-references HEADER REFERENCES)

Trim REFERENCES to be 21 Message-ID long or less, and fold them.
When sending via news, also check that the REFERENCES are less
than 988 characters long, and if they are not, trim them until
they are.